Re: [ft-devel] Checking for proper size in `cff_slot_load'

2019-08-09 Thread Moazin Khatri
> > This looks ok, thanks; an early check is definitely a good thing – > maybe the late check can even be removed then. > The early check only happens if an SVG table exists, otherwise the control flow remains the same as it was earlier. However, I am not sure if the late check can really be

Re: [ft-devel] Checking for proper size in `cff_slot_load'

2019-08-09 Thread Werner LEMBERG
> In `TT_Load_Glyph', there is some code that checks if the sizes have been > set correctly. [...] > > For OT-SVG glyphs, I want to check if the size has been set earlier > than this (because my checks for OT-SVG glyphs come early too). Are > there easy ways to do that? Since I only care about

[ft-devel] Checking for proper size in `cff_slot_load'

2019-08-09 Thread Moazin Khatri
Hi, In `TT_Load_Glyph', there is some code that checks if the sizes have been set correctly. /* if FT_LOAD_NO_SCALE is not set, `ttmetrics' must be valid */ > if ( !( load_flags & FT_LOAD_NO_SCALE ) && !size->ttmetrics.valid ) > { > error = FT_THROW( Invalid_Size_Handle ); >