Re: Which font does NetSurf use?

2015-04-05 Thread Rob Kendrick
On Sun, Apr 05, 2015 at 09:10:41PM +0100, Gavin Wraith wrote:
 When NetSurf renders the character pi (#960;) how does it
 choose which font to use?

If memory serves, it uses RUfl (RISC OS Unicode Font Library), which
depending on if the host OS supports Unicode font rendering (ie, not
ROL's OS) will either select the glyph in the current font if it has it,
or will switch to a different codepage to render it.  How it chooses the
font is based on a heuristic involving font weight and style
(sans/serif, bold, oblique, approximate size metrics, etc).  If there
are multiple possibilities, my bet is it picks the first it finds.

I don't think anybody has touched this code in a long time, but here it
is:
http://git.netsurf-browser.org/librufl.git/tree/src


B.



Which font does NetSurf use?

2015-04-05 Thread Gavin Wraith
When NetSurf renders the character pi (#960;) how does it
choose which font to use?

-- 
Gavin Wraith (ga...@wra1th.plus.com)
Home page: http://www.wra1th.plus.com/