[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: |
Sat, 25 Apr 2020 21:53:43 +0200 (CEST) |
> In https://docs.microsoft.com/en-us/typography/opentype/spec/ttch01
> it is explained that outside curves go clockwise. Does that hold for
> other font types too? (PFA, OTF?)
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 ...
Werner
[*] To be more precise: OpenType fonts can either use TrueType or
PostScript outlines. The former has a 'glyf' table in the font's
SFNT data structure, the latter 'CFF' or 'CFF2' table.
- 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