Don’t rely on glyf table to get bitmap font’s glyph ID
Don’t rely on glyf table to get bitmap font’s glyph ID

The glyf table may not be available for such fonts. Fortunately, Fonttools
provides a getGlyphID method on the font object that does what we want with no
assumption about the available tables.

Kozea/WeasyPrint,Kozea/WeasyPrint