> I need get the string width before drawing. So how to get the char
> width (bitmap width) without rendering ?
If you need exact values, you have to render it (and caching the
created bitmaps for efficiency). This is because some formats like
TrueType adjust the advance width values during the hinting process.
Otherwise, loading the glyphs is sufficient to extract the linear
advance width.
Werner
_______________________________________________
Freetype mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype