refactor glyph parsing for pbf 1