LoadFontEx

www.progui.co.uk  Top  Previous  Next

LoadFontEx()

Syntax

FontHandle (HFONT) = LoadFontEx(Name.s, PointSize.l, Flags.i)

Description

Loads a font ready for use. Name.s is the name of the font such as "Verdana" and PointSize.l is the desired size.

Flags.i can contain the following constants:

#Font_Bold

Makes the font bold.

#Font_Italic

Makes the font italic.

#Font_Underline

Makes the font have an underline.

#Font_StrikeOut

Makes the font have a strike-through line in the middle.



#Font_Antialiased

The font is antialiased, or smoothed, if the font supports it and the size of the font is not too small or too large.

#Font_NonAntialiased

The font is never antialiased, that is, font smoothing is not done.

#Font_Cleartype

If set, text is rendered (when possible) using ClearType antialiasing method.

#Font_Draft

For GDI raster fonts, scaling is enabled, which means that more font sizes are available, but the quality may be lower. Bold, italic, underline, and strikeout fonts are synthesized, if necessary.

The font can later be freed when not needed anymore using the FreeFontEx command.

Returns a handle to the font (HFONT) or zero for failure.

 

General Index