Font_LookupFont Font_CharacteristicFlags

Justin F gerph at gerph.org
Tue Mar 16 21:56:02 GMT 2021


OSLib has Font_LookupFont returning R2 containing the 
Font_CharacteristicFlags, which is correct, but it currently seems to say 
that the bits are:

   Font_CharacteristicOldFormat       = Font_CharacteristicFlags: %1,
   Font_CharacteristicROM             = Font_CharacteristicFlags: %10,
   Font_CharacteristicMonochrome      = Font_CharacteristicFlags: %100,
   Font_CharacteristicFillRuleNonZero = Font_CharacteristicFlags: %1000;

That's wrong, I think.

The PRM says:

R2 = characteristics of font:

    bit 0 set => font is old 'x90y45' bitmap format
    bit 1 set => font is in ROM
    bit 8 set => font is monochrome only, irrespective of value of FontMax2
    bit 9 set => font is filled with non-zero rule, rather than even-odd

So I think those flags should be:

   Font_CharacteristicOldFormat       = Font_CharacteristicFlags: %1,
   Font_CharacteristicROM             = Font_CharacteristicFlags: %10,                          
   Font_CharacteristicMonochrome      = Font_CharacteristicFlags: %100000000,
   Font_CharacteristicFillRuleNonZero = Font_CharacteristicFlags: %1000000000;

The source seems to agree with these bits.

-- 
Charles Justin Ferguson
[ All information, speculation, opinion or data within, or attached to,
  this email is private and confidential. Such content may not be
  disclosed to third parties, or a public forum, without explicit
  permission being granted. ]



More information about the oslib-user mailing list