[PATCH 1/2] Added a function to check if specific OS features are available
Lubomir I. Ivanov
neolit123 at gmail.com
Sat Oct 20 07:47:46 PDT 2012
On 20 October 2012 17:35, Dirk Hohndel <dirk at hohndel.org> wrote:
>
> I was googling for that a bit yesterday and the discussions all seem to lead nowhere. There doesn't appear to be a reliable way to test if a specific glyph is in a font.
>
>> this leaves us with checking the version.
>
> And I'm ok with that. I don't expect a massive XP user base. I had even considered saying "Works with Windows 7" and be done with it :-)
>
i agree, we should leave the current solution for now.
another quick note:
FreeType has a pretty decent API for things like that:
FT_Get_Char_Index() and i'm assuming this is the reason it works on
linux.
but i'm not sure how to use it with pango's font index - e.g. how to
dissect the font on a lower level and if its even possible given GDI
is probably the windows backend.
if something like that is possible, then it's perhaps doable:
PangoFontDescription -> PangoFont -> .... -> FT_Face
lubomir
--
More information about the subsurface
mailing list