[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Extracting approximate outlines from FT ?
From: |
Werner LEMBERG |
Subject: |
Re: Extracting approximate outlines from FT ? |
Date: |
Sun, 26 Apr 2020 11:14:38 +0200 (CEST) |
>> PostScript flavoured glyphs like PFA or OTF[*] have the opposite
>> orientation. You can easily check whether the used FreeType driver
>> for a font is 'truetype':
>>
>> FT_Face face = Get_FT_Face_For_Current_Font(...);
>> FT_Module module;
>>
>> module = &face->driver->root;
>> if (!strcmp( module->clazz->module_name, "truetype"))
>> ... we have a TrueType font ...
>
> Looks like this is not available in the public API. Does it work if I
> check for a "glyf" font table?
>
> See https://codereview.appspot.com/569700043/
Ah, silly me. Simply use function `FT_Get_Font_Format` instead.
Werner
- Extracting approximate outlines from FT ?, Han-Wen Nienhuys, 2020/04/17
- Re: Extracting approximate outlines from FT ?, Werner LEMBERG, 2020/04/25
- Re: Extracting approximate outlines from FT ?, Han-Wen Nienhuys, 2020/04/26
- Re: Extracting approximate outlines from FT ?, Han-Wen Nienhuys, 2020/04/26
- Re: Extracting approximate outlines from FT ?, Werner LEMBERG, 2020/04/26
- Re: Extracting approximate outlines from FT ?, Han-Wen Nienhuys, 2020/04/26
- Re: Extracting approximate outlines from FT ?, Werner LEMBERG, 2020/04/27