Navigation:  ThinBASIC Modules > UI (User Interface) > Windows API >

Win_AddFontResource

Previous pageReturn to chapter overviewNext page

 

Description

 

Adds the font resource from the specified file to the system font table. The font can subsequently be used for text output by any application.

 

Syntax

 

lRet = Win_AddFontResource(FontFile)

 

Returns

 

If the function succeeds, the return value specifies the number of fonts added.

If the function fails, the return value is zero.

 

Parameters

 

Name

Type

Optional

Meaning

FontFile

String

No

A valido font file name

 

Remarks

 

For additional info, please refer to MS documentation at: http://msdn.microsoft.com/en-us/library/windows/desktop/dd183326(v=vs.85).aspx

 

Restrictions

 

See also

 

Win_RemoveFontResource

 

Examples