Xbasic

{FONTLIST}

Syntax

{FONTLIST= Width, Height : Default_Font }

Arguments

Width

Numeric. The width of the control in characters, by default based on the default font: Arial 8.

Height

Numeric. The height of the control in lines, by default based on the default font: Arial 8.

Default_Font

Pointer. The variable that receives the user font selection. It has 3 components. .facename = the name of the font .size = the point size of the font .allow_raster_expr

Description

The {FONTLIST} command displays a list of installed fonts.

Example 

dim pfont as p
pfont.facename = "Arial"
pfont.size    = 12
pfont.allow_raster_expr = ".t."
ui_dlg_box("Font List",<<%dlg%
{fontlist=40,10:pfont};
{samplefont=40,2:pfont};
{line=1,0};
{lf};
<*10&OK!ok> <10&Cancel!cancel>;
%dlg% )
images/XD_Fontlist.gif

Limitations

Desktop applications only

See Also