freetype-devel
[Top][All Lists]
Advanced

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

Re: Revised SVG stuff


From: Moazin K
Subject: Re: Revised SVG stuff
Date: Sat, 15 Jan 2022 23:55:43 -0800

Hi Werner,
 
> The reason why the autohinting code seems to get triggered for that
> font is because `ttface->num_locations` is 1

The actual value is 321, the number of normal (i.e., non-SVG) glyphs
in the TrueType font.

Yea, sorry, that's correct.
 
> for this font while it's 0 for all other fonts that I had in my test
> collection.

In other words, all fonts that you've tested so far were `.otf` fonts
(with third-order Bézier curves), and not `.ttf`, right?
 
True, as far as I can see.
 
> I'm not sure how to add a check that can prevent hinting to be run
> for OT-SVG glyphs.  Whether or not a glyph index has a corresponding
> SVG glyph in the table is determined later on inside cff_slot_load
> or TT_Load_Glyph.  Any ideas on how to prevent autohinting from
> being run on an OT-SVG glyph?

Look at the clause

It seems to me that you could try to add another special case for SVG.

Yea, that's what I had in mind, but given this situation, I think what can be done is,
check if an SVG table exists in the font and FT_LOAD_COLOR has been passed, if the two
are true, don't run the auto-hinter.

Is that what you mean?

Moazin

reply via email to

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