Skip to content
Zachary Quinn Scheuren edited this page Jan 26, 2021 · 5 revisions

How to subroutinize a CFF or CFF2 font:

CFF

cp myfont.otf mynewfont.otf
tx -cff +S +b myfont.otf > mytable.CFF
sfntedit -a CFF=mytable.CFF mynewfont.otf

CFF2

cp myfont.otf mynewfont.otf
tx -cff2 +S +b myfont.otf > mytable.CFF2
sfntedit -a CFF2=mytable.CFF2 mynewfont.otf

How to de-subroutinize a CFF or CFF2 font:

CFF

cp myfont.otf mynewfont.otf
tx -cff -S +b myfont.otf > mytable.CFF
sfntedit -a CFF=mytable.CFF mynewfont.otf

CFF2

cp myfont.otf mynewfont.otf
tx -cff2 -S +b myfont.otf > mytable.CFF2
sfntedit -a CFF2=mytable.CFF2 mynewfont.otf

How to remove hints from a CFF-based OTF

(OTF-to-OTF)

tx -cff -n +b in.otf out.cff   # saves unhinted CFF table into out.cff
sfntedit -a CFF=out.cff in.otf out.otf   # replace CFF table of in.otf with out.cff into out.otf