On Mon, 2011-12-05 at 07:33 +0100, W P Blatchley wrote: > Now I've expanded the repertoire of UCS fonts on my system, I'm wondering > how RUfl decides from which fonts to take glyphs for substituting when > they're not present in the font being painted with. Could someone explain, > please?
There is a substitution table which maps from Unicode codepoint to a font containing the glyph (or none, if no fonts contain an appropriate glyph). The table is populated at startup, and remains constant thereafter. > Is any attempt made to match styles and weights, and if so, how > does RUfl determine the style and weight of a font? No, it doesn't. It *will* match styles/weight when selecting the appropriate initial font, but the substitution table is built without paying attention to this information. As RISC OS fonts carry little metadata about styles/weights, RUfl simply uses the font name as a guide. J.
