Equinox Online Help - Language Reference - A to Z

Home

FontHandle

Applies to
SyntaxFontHandle (IndexorStringExpression)
Action[Function] Returns a Windows handle for a particular font.
ScopeOnly usable in form methods.
Notes

A Windows handle for an application font may be useful when running external DLLs. The name or index number of the font is passed to the function via the IndexorStringExpression parameter.

CategoryFonts and Colours
See Also Bcopy, ChangePalette, ColourName_ColorName, ColourNumber_ColorNumber, External, FontHandle, FontHandle, FontName, FontNumber, GetMessageParameters, GetNotifyParameters, Hiword, Loword, MakeLong, PaletteRGB, RGB, RGBValues
Example

This example passes an integer array to an external DLL to return the character widths of a string in order to compute the length of a displayed line.

int charwidths[256]

GetFontWidths FontHandle("Default Form Font"), charwidths