freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft] Space versus no glyph


From: Ross Crawford
Subject: Re: [ft] Space versus no glyph
Date: Tue, 10 May 2005 11:22:23 +1000

Ooops sorry to reply to myself - I found the answer, just add a dummy (empty) glyph at position #0, then FT_Get_Char_Index() returns 1 for space.

ROSCO

----- Original Message ----- From: "Ross Crawford" <address@hidden>
To: <address@hidden>
Sent: Tuesday, May 10, 2005 8:49 AM
Subject: [ft] Space versus no glyph


Hi,

I created a small font that just contains space, digits 0-9, and caps A-Z. It is being used as the default font in my program. I want the space to just increase the advance, but all undefined characters to generate a warning for the user and not generate anything. However I can't seem to find how to tell the difference between a char not existing in the charmap, and char 32 (which has no glyph associated with it).

FT_Load_Char() does not return an error for the non-existant chars, and FT_Get_Char_Index() returns 0 for space as well as the non-existant ones. Is there a way I can check the charmap directly to determine whether or not a given char is mapped?

Thanks

ROSCO


_______________________________________________
Freetype mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/freetype






reply via email to

[Prev in Thread] Current Thread [Next in Thread]