Wrong font started on .DF LIST


Question

I defined fonts using .DF LIST but kept getting the wrong font. What happened?

Answer

  The user's code looked like this:

     .df hi2 LIST (hi2l hi2i hi2ps)
     .df hi2l FONT &$CHAR(2)
     .df hi2i TYPE ('Sonoran Sans Serif' 10 bold)
     .df hi2ps TYPE (helvetica 10 bold) codepage pscp0395

  When formatting for a 3820 device type, the user expected to get the
  Sonoran Sans Serif bold font as the hi2 font.  Instead the default medium
  font was used.  The LIST parameter found the reference to the CHAR and was
  able to resolve that to a valid font reference (even though it was null),
  before it reached the hi2i font definition.

  To solve the problem, move the font defined with the FONT parameter to the
  bottom of the search order.

Last updated: 93/08/24 16:40:44

Previous Contents Next