Problem with struct font_misc_info
Stewart Brodie
stewart.brodie at pace.co.uk
Sun Feb 24 16:05:06 GMT 2002
In message <b2f8ddd4b%alex at thouky.co.uk> you wrote:
> OSLib defines the miscellaneous font metrics information structure
> (returned by Font_ReadFontMetrics) as:
> i.e. a 52 byte block rather than a 28 byte one.
>
> The OSLib definition does appear to match that specified in the PRMs
> (3-478), but that isn't terribly helpful when the font manager returns
> something different.
>
> Preumably, either the PRM information was always wrong, or (more likely)
> the behaviour changed in a later release of RISC OS. I'm guessing that
> someone working on the font manager changed an internal data structure to
> improve efficiency and didn't realise the knock-on effects.
Yes - the PRMs are wrong as they show the organisation of the data as it
appears in the IntMetrics file and not in the block returned by this SWI.
Effectively, all the shorts are actually 32-bit ints. It is likely that the
information was always wrong.
--
Stewart Brodie, Senior Software Engineer (Views expressed are my own and
Pace Micro Technology plc not those of my employer)
645 Newmarket Road
Cambridge, CB5 8PB, United Kingdom WWW: http://www.pacemicro.com/
More information about the oslib-user
mailing list