On Mon, 05 Dec 2011 21:26:19 +0000
John-Mark Bell <[email protected]> wrote:

> On Mon, 2011-12-05 at 19:38 +0100, W P Blatchley wrote:

> > 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

Just to explain the motivation behind this design: the substitution
table is 65K, and there are 18 weight-slant combinations. I wanted
RUfl to have small memory usage, so adding a table for each weight-
slant would have taken too much space. Perhaps a different data
structure or approach would be possible.

It wouldn't be difficult to construct the table in a different order
from alphabetical though.

James

Reply via email to