www.progui.co.uk  Top  Previous  Next



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


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:


Makes the font bold.


Makes the font italic.


Makes the font have an underline.


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


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


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


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


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