wpf47fde7b.png
wp5b17fedc.png
wpe6c72ee4.png

< Integer > = SETUP PRINTER FONT(Handle$, FontName$, Size, Flags) < String, String, Integer, Integer >

SETUP PRINTER FONT creates or modifies a font with a handle specified by the string contained within handle$. If the font already exists, the existing font attributes are copied over by the new ones. This command does not make the font, the current font the printer. To make the font the current printer font you must use the  SET PRINTER FONT command. The FontName$ parameter specifies the font name of the font you are trying to set. It is a good idea to check if the font is present on the system you are using. The size parameters specifies the size of the font in points, one point is equal to 1/72 of an inch.

The flags parameter specifies the style of the font.

 

  BIT 0 SETS THE BOLD FLAG

 BIT 1 SETS THE ITALIC FLAG

 BIT 2 SETS THE STRIKETHROUGH  FLAG

 BIT 3 SETS THE UNDERLINE FLAG

 

If the function succeeds the returm value is 1 otherwise it is 0.

 

When you have finished using a font it is a good idea to delete it from memory using the

DESTROY PRINTER FONT command.