File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -221,9 +221,15 @@ fn _subset(mut ctx: Context) -> Result<Vec<u8>> {
221221 if ctx. flavor == FontFlavor :: TrueType {
222222 // LOCA will be handled by GLYF
223223 ctx. process ( Tag :: GLYF ) ?;
224- ctx. process ( Tag :: CVT ) ?; // won't be subsetted.
225- ctx. process ( Tag :: FPGM ) ?; // won't be subsetted.
226- ctx. process ( Tag :: PREP ) ?; // won't be subsetted.
224+
225+ // Only copy hinting tables if we don't interject because skrifa will
226+ // discard hinting information.
227+ // TODO: Add a test for this.
228+ if !ctx. interjector . is_skrifa ( ) {
229+ ctx. process ( Tag :: CVT ) ?; // won't be subsetted.
230+ ctx. process ( Tag :: FPGM ) ?; // won't be subsetted.
231+ ctx. process ( Tag :: PREP ) ?; // won't be subsetted.
232+ }
227233 } else if ctx. flavor == FontFlavor :: Cff {
228234 ctx. process ( Tag :: CFF ) ?;
229235 } else if ctx. flavor == FontFlavor :: Cff2 {
You can’t perform that action at this time.
0 commit comments