Discussion:
[fontforge-users] Error Message "is not a valid font file"
RogueYun
2015-08-25 16:58:26 UTC
Permalink
I'm new, so please have patience with me.

<Loading Image...>

I'm getting the above error message when I double click the font file I made
for use in a roguelike video game.

You can download the compressed .sfd and the offending .ttf here for the
next few days.

http://www.filedropper.com/rogue

Any help would be very much appreciated.



--
View this message in context: http://fontforge.10959.n7.nabble.com/Error-Message-is-not-a-valid-font-file-tp14845.html
Sent from the User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
marty39
2015-08-25 17:24:45 UTC
Permalink
No problem in Mac OS X Mavericks. The ttf opens in Font Book as Untitled1
Regular. When I opted to install it, it passed validation with no complaints
from Font Book.

Maybe Windows wants a real font name.



--
View this message in context: http://fontforge.10959.n7.nabble.com/Error-Message-is-not-a-valid-font-file-tp14845p14846.html
Sent from the User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
RogueYun
2015-08-25 18:17:50 UTC
Permalink
Hey! Thanks for the quick response.

I got another notification something like "em works in multiples of 2, 10
isn't a multiple of two (go figure?) we would recommend you change your em."
So I set my em to 100 and it seems to work now. Thanks everyone!



--
View this message in context: http://fontforge.10959.n7.nabble.com/Error-Message-is-not-a-valid-font-file-tp14845p14847.html
Sent from the User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
marty39
2015-08-25 18:35:18 UTC
Permalink
Aha! Fontforge says the convention is that TrueType fonts should have an
Em-size that is a power of 2. It gave me that warning when I tried to create
a TrueType font with an em-size of 1000, saying that it wasn't an error,
just conventional. TrueType fonts usually have an Em-size of 1024 or 2048,
but Windows can accept other Em sizes.

Maybe in this case the em-size was just too small for Windows. For your
purposes it would have to be a multiple of 10, so 100 works.



--
View this message in context: http://fontforge.10959.n7.nabble.com/Error-Message-is-not-a-valid-font-file-tp14845p14848.html
Sent from the User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
m***@ansuz.sooke.bc.ca
2015-08-26 06:43:22 UTC
Permalink
Post by marty39
Aha! Fontforge says the convention is that TrueType fonts should have an
Em-size that is a power of 2. It gave me that warning when I tried to create
a TrueType font with an em-size of 1000, saying that it wasn't an error,
just conventional. TrueType fonts usually have an Em-size of 1024 or 2048,
but Windows can accept other Em sizes.
Maybe in this case the em-size was just too small for Windows. For your
purposes it would have to be a multiple of 10, so 100 works.
I've experienced problems with Windows PDF viewers and fonts whose em
values are not powers of two; sometimes the PDF viewer will seemingly
choose a new em value of its own and use that instead of the one in the
font, resulting in characters that are located at the correct points on
the page but significantly larger or smaller than they should be. I think
it's a really bad idea to attempt to use a nonstandard em value, even if
the standard claims doing so is allowed.
--
Matthew Skala
***@ansuz.sooke.bc.ca People before principles.
http://ansuz.sooke.bc.ca/

------------------------------------------------------------------------------
Loading...