- Home /
Can I set a specific font for a specific font style?
I have two versions of the same font (two .ttf): a normal style and a bold style.
I am using the Unity GUI scripts for text rendering. I would like to have the bold version (using the rich text and <b>
) using the bold style font file, not the bold generated by Unity font.
How to? :)
Answer by karljj1 · Dec 10, 2013 at 06:37 PM
Hi,
Someone asked a similar question the other day: http://answers.unity3d.com/questions/585495/imported-fonts-bold-style-looks-like-compressed.html
I wrote a script to do it which may be of use, its this: http://answers.unity3d.com/storage/attachments/18669-text%20example.zip
Thanks for your answer. Does it support word wrap, with all text in the same paragraph?
No but you can extend it. Should not be too hard. When the offset gets over a certain amount then just jump back and go down 1.
Your answer
Follow this Question
Related Questions
Is there a way to measure the pixel with/height of a string with a given font? 2 Answers
Display TM symbol in enum on GUI 1 Answer
Alpha set by tag in GUI.Label / GUI text behaves strange way 1 Answer
Text To Texture/Image 1 Answer
Font sizes, GUI, Iphones and even more head scracthing problems 0 Answers