Re: [ft] Prevent synthesis of Unicode charmap?

2021-08-16 Thread Antony Lee
Great, thanks! Antony On Sun, Aug 8, 2021 at 12:26 AM Werner LEMBERG wrote: > > 2½ years ago you wrote the following: > > > ... I think just clarifying the documentation may be sufficient, > > e.g. replacing (in the docs for FT_Encoding) > > > > "By default, FreeType enables a Unicode charmap an

Re: [ft] Prevent synthesis of Unicode charmap?

2021-08-07 Thread Werner LEMBERG
2½ years ago you wrote the following: > ... I think just clarifying the documentation may be sufficient, > e.g. replacing (in the docs for FT_Encoding) > > "By default, FreeType enables a Unicode charmap and tags it with > FT_ENCODING_UNICODE when it is either provided or can be generated > from

Re: [ft] Prevent synthesis of Unicode charmap?

2018-12-13 Thread Antony Lee
On Wed, Dec 12, 2018 at 10:07 PM Alexei Podtelezhnikov wrote: > > Is there a way to prevent FreeType from synthesizing a Unicode charmap, > or > at least clearly identifying the synthesized charmap as such? > > FT_Get_CMap_Format will return -1 for synthetic cmaps in TrueType > fonts, but also re

Re: [ft] Prevent synthesis of Unicode charmap?

2018-12-12 Thread Alexei Podtelezhnikov
> Is there a way to prevent FreeType from synthesizing a Unicode charmap, or at least clearly identifying the synthesized charmap as such? FT_Get_CMap_Format will return -1 for synthetic cmaps in TrueType fonts, but also return -1 for all non-TrueType cmaps The synthetic cmap is added last, which

Re: [ft] Prevent synthesis of Unicode charmap?

2018-12-04 Thread Antony Lee
> > > In practice, right now we just look up a charmap with either > > TT_ADOBE_ID_STANDARD or TT_ADOBE_ID_CUSTOM encoding, which > > essentially works, but having a way to distinguish the actual > > font-provided charmap from the FreeType-synthesized one seems > > cleaner. > > Up to now nobody has

Re: [ft] Prevent synthesis of Unicode charmap?

2018-12-03 Thread Werner LEMBERG
> Is there a way to prevent FreeType from synthesizing a Unicode > charmap, or at least clearly identifying the synthesized charmap as > such? Not really. > In the Python plotting library Matplotlib (of which I am a > developer), there is an option to use TeX for text rendering; when > outputti

[ft] Prevent synthesis of Unicode charmap?

2018-12-02 Thread Antony Lee
Hi all, Is there a way to prevent FreeType from synthesizing a Unicode charmap, or at least clearly identifying the synthesized charmap as such? In the Python plotting library Matplotlib (of which I am a developer), there is an option to use TeX for text rendering; when outputting to vector formats