Open hliyao opened 4 years ago
when i parse font of pingfang.ttf, it tell "bad TTF version", how could i fix it?
func parse(ttf []byte, offset int) (font *Font, err error) { magic, offset := u32(ttf, offset), offset+4 the magic show it is the post script font.
when i parse font of pingfang.ttf, it tell "bad TTF version", how could i fix it?
func parse(ttf []byte, offset int) (font *Font, err error) { magic, offset := u32(ttf, offset), offset+4 the magic show it is the post script font.