Problem with struct font_misc_info
Alexander Thoukydides
alex at thouky.co.uk
Sun Feb 24 16:31:21 GMT 2002
On 24 Feb, Tony van der Hoff <tony at mk-net.demon.co.uk> wrote:
> On 24 Feb 2002, in message
> <b759e30d4b.sbrodie at usr-offsite-75.cam.pace.co.uk>, Stewart Brodie
> <stewart.brodie at pace.co.uk> wrote:
>
> > 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.
> > 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, thanks for the confirmation that I'm not doing anything especially
stupid.
> Amazingly, I have a note in my PRM of exactly this problem, which I guess
> must pre-date my taking on the maintenance of OSLib :-(
It's strange that this particular problem doesn't appear to be listed in any
of the PRM errata.
> Anyway, I guess this is a bug; no need to retain a compatible
> structure/call?
There is an argument for keeping the original structure for backwards
compatibility - if it is the same as the IntMetrics fie format then someone
could be using it for that. Personally, I don't have strong feelings either
way.
However, I would agree that there isn't any point including a SWI definition
that takes a point to the original structure definition.
Alex
--
-- Alexander Thoukydides Email: mailto:alex at thouky.co.uk
-- Cambridge, England WWW: http://www.thouky.co.uk/
-- Adding manpower to a late software project makes it later.
More information about the oslib-user
mailing list