pdf-raku / Font-FreeType-raku

Read font files and render glyphs using FreeType2
Artistic License 2.0
2 stars 3 forks source link

OpenType fonts are reported as format type "CFF" #27

Closed tbrowder closed 3 months ago

tbrowder commented 10 months ago

I expected the format type to be "OpenType" but "CFF" was reported. I see that the font has a CFF table, but I don't understand why that would define its format when TrueType fonts are reported as TrueType.

dwarring commented 10 months ago

Yes, there's is actually a *cff format that also gets reported as "CFF" by the underlying FreeType library.

OpenType *otf fonts theoretically have two variants that differ structurally CFF with Type1 outlines and TT with TrueType outlines, but I've never seen examples of the latter.

I'll have a look and see if there's some way of distinguishing simple CFF and OpenType CFF.

dwarring commented 8 months ago

Have changes as suggested. OpenType CFF now returns format OpenType. These fonts usually have extension *.otf.

Fix released with Font::FreeType 0.5.5

tbrowder commented 3 months ago

Thanks!