x


Custom font: works on web and Mac but not Windows?

I have a Unity project that includes a TTF file for a custom font. The font in question works properly in the Mac build and the web player build when played on a Mac, but fails to render in the Windows build or in the web player when played on Windows.

The error message on windows is:

Cannot add font resource

(Filename: ....\Runtime\Filters\Misc\Font.cpp Line: 815)

This is followed by a series of "Could not get Glyph outline:" messages with the same stack (trying to render a label from OnGUI in one of my scripts). Presumably those are because the font failed to load.

Does anyone have any suggestions as to why this would fail on Windows?

more ▼

asked Jan 31 '11 at 04:05 AM

Unsanctioned gravatar image

Unsanctioned
1 1 1 1

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

What is the "Character" of your Font in the Inspector? Because I had the same error when I set it to dynamic which is standard, but as Unicode it works great.

Maybe give it a try if you haven't found out yet ;-)

Chris

more ▼

answered Feb 08 '11 at 12:12 PM

Chris 26 gravatar image

Chris 26
111 2

I ended up switching to a different font to work around the problem. If I run into that problem again, I'll try switching it to Unicode and see if that helps.

Apr 26 '11 at 04:57 PM Unsanctioned
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1945
x260
x239

asked: Jan 31 '11 at 04:05 AM

Seen: 1498 times

Last Updated: Jan 31 '11 at 04:05 AM