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