[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] Checking for proper size in `cff_slot_load'
From: |
Werner LEMBERG |
Subject: |
Re: [ft-devel] Checking for proper size in `cff_slot_load' |
Date: |
Fri, 09 Aug 2019 18:15:13 +0200 (CEST) |
> 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 `x_ppem' and
> `y_ppem' I can just simply check for those two values as I do here
> <https://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?h=GSoC-2019-moazin&id=6be6e76313831a6fa0b066acf8565acfb6f00109>.
This looks ok, thanks; an early check is definitely a good thing –
maybe the late check can even be removed then.
Werner