On Mon, 2011-12-05 at 19:38 +0100, W P Blatchley wrote: > On Mon, 05 Dec 2011 13:00:17 +0100, > <[email protected]> wrote: > > > 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. > > I don't quite follow this. What do you mean by "initial font" here? Sorry > if I'm being slow!
I mean the parameters passed to rufl_paint and friends (i.e. the font face the client asks for) > So, the substitution table is just a single mapping of UCS code point -> > one (of a possible many) fonts that contain a glyph for that code point? That's what I wrote, yes. > Is the font chosen just the first one RUfl encounters (alphabetically?) > that has a match? Pretty much, yes. See: http://source.netsurf-browser.org/trunk/rufl/src/rufl_init.c?revision=9792&view=markup#l1061 > And what does RUfl take as hints to the font style from the name? > ".Medium" and ".Bold", that kind of thing? Yes. See: http://source.netsurf-browser.org/trunk/rufl/src/rufl_init.c?revision=9792&view=markup#l347 Patches to improve the situation are always welcome. J.
