gwaredd/UnityMarkdownViewer

How to change font?

Closed this issue · 5 comments

In a md file like this

### English 繁體中文

English 繁體中文

**English 繁體中文**

This is a sentence.

這是一個句子

And it is how it look like in unity inspector

image

I think its bcuz the font dont support other language ?

so i want to change font that support more language for consistent looking in different language.

thanks for making this great plugin!!

Well the font supports simplified Chinese otherwise you would get no characters at all, although it needs some attention to how it handles emphasis see #28

即使我只有基本的中文水平,我仍然能读懂它。 :)

Is there an alternative (open source, royalty free) font you have in mind? You should be able to change the font in the skin in the Editor/Skin folder.

i will check #28 latter

i would like to use google noto sans font.
Just put font in that folder and rename to same name?

i will check #28 latter

i would like to use google noto sans font. Just put font in that folder and rename to same name?

You can edit the GUIStyles that references the fonts, you'll want to switch out the fonts in the CustomStyles section of the GUISkin that are named variable, fixed_inline and fixed_block:

image

image

Thanks!!
After i search for better font. I found out JetBrains Mono.

So i change font to it.
And here's how it looks like

### English 繁體中文

English 繁體中文

**English 繁體中文**

**English** 繁體中文

This is a **sentence**.

這是一個**句子**

image

Changed font to JetBrains Mono, it does look much better :) 90bd7c8