Papyrix uses its own font format they call "EPD". So today I'm studying the support library for handling such EPD fonts.
This includes a method for retrieving glyphs from the font (with fallbacks) to denote some text whilst summing the advance-X & grabbing the bounding-box. This is wrapped in a method for computing the width/height.
It uses a cached binary-search to locate which interval a desired glyph is in. There's a support class to aid this hashmap-caching.
1/3?