From: Dom Lachowicz (domlachowicz@yahoo.com)
Date: Sun Jun 22 2003 - 10:09:17 EDT
I'll look into this if no-one beats me to it. It
should be doable via at least one of these functions:
FcBool XftFontCheckGlyph()
FcBool XftCharExists()
FT_UInt XftCharIndex()
Dom
--- Tomas Frydrych <tomasfrydrych@yahoo.co.uk> wrote:
>
> If someone could implement glyph presence detection
> on Unix/xft I
> would be grateful -- I have some nice code waiting
> to be turned on
> that is conditioned by that. Also, once it is in
> place I will be able
> to remove the dreaded GR_Graphics::remapGlyph() for
> ever.
>
> As I said in an earlier posting, the glyph detection
> can be
> implemented in two ways:
>
> 1. When measuring character widths for the cache if
> the glyph is
> absent, set the width to GR_CW_ABSENT
>
> 2. Alternatively, implement
> GR_*Font::doesGlyphExist() to replace the
> virtual implemented in the base class.
>
> Choose whatever makes better sense (if you replace
> the
> doesGlyphExist() function, the implementation needs
> to be fast).
>
> Tomas
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
This archive was generated by hypermail 2.1.4 : Sun Jun 22 2003 - 10:21:11 EDT