chris.young at unsatisfactorysoftware.co.uk
Sun Jun 28 16:27:33 BST 2009
On Sun, 28 Jun 2009 12:37:32 +0100, Michael Drake wrote:
> The existing plotter API has been slowly extended as NetSurf has
> evolved, and it's a bit inconsistent.
> John-Mark has put a proposal for improving it up here:
> Comments welcome.
|All colours are in the form 0xAABBGGRR.
|On little-endian platforms, bitmaps are also 0xAABBGGRR.
|On big-endian platforms, bitmaps are 0xRRGGBBAA
If we're improving the plotters, can we get this fixed at the same
time? Colours should be in 0xRRGGBBAA on big-endian platforms, same
as the bitmaps.
|bool (*find_font)(void *pw, const char **font_names, size_t n, font_t *result);
Opening and closing fonts here is relatively slow, so I'd like to keep
it to a minimum. Can we assume that find_font should also open the
font in question? How do we find out when NetSurf has finished with
it (for the page)? Some way of keeping track of usage in the platform
code and being able to flush any that have not been used for a while
would be useful here I think.
Regarding generic families, the easiest thing would be for NetSurf to
send the user's selected font for the desired family (from
option_font_sans etc) in the font_names array.
More information about the netsurf-dev