freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Variable Fonts


From: Tulsi Amin
Subject: Re: Variable Fonts
Date: Mon, 9 Jan 2023 11:34:57 +0100

Hello,
Now that I researched more, I cannot cache glyphs of different variations
inside the cache manager unless I provide a different face_id for each
variation and only then my system works correctly. To be honest this is a
flaw in the cache subsystem of the freetype library. You need to provide a
way to cache the glyphs of different variations and identify them uniquely
as well. Please let me know your thoughts on this. The caching system
should work well with variable fonts. Currently what I have done seems like
a hack make it work.

Thank You,
Tulsi Amin

On Mon, Jan 9, 2023 at 10:04 AM Tulsi Amin <tulsiamin82@gmail.com> wrote:

> Hello,
>
> I have another question related to variable fonts.
> My current implementation maps a face_id with a font variation defined by
> me.
> For example,
> Bold is a variation with weight axis value 1.0 and SemiBold is a variation
> with weight axis value 0.8 and I input a different face_id for each of the
> variation when I call  FTC_Manager_LookupFace() function so that it can
> cache glyphs of both the variations but I also think that a face_id should
> be different only when we are loading a different font file and not when we
> are applying different variations. I am a bit confused if my implementation
> should cache glyphs of both the variations in the freetype cache manager
> without changing the face_id. Please let me know.
>
> FTC_Manager_LookupFace() - here I send different face_id for different
> variations though they belong to the same font resource file(I mean the
> same .ttf)
>
> Thank You,
> Tulsi Amin
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]