|
From: | Ross Crawford |
Subject: | [ft] Space versus no glyph |
Date: | Tue, 10 May 2005 08:49:29 +1000 |
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?
ThanksROSCO
[Prev in Thread] | Current Thread | [Next in Thread] |