3ds Max C++ API Reference
User Interface (UI) font related methods

The user interface of 3ds Max 2010 uses the font returned by GetUIFont(). More...

Functions

CoreExport HFONT GetUIFont ()
 Return the standard font used in 3ds Max's user interface. More...
 
CoreExport HFONT GetUIFont_LocalCharSet ()
 Return the standard font used in 3ds Max's user interface, depending on the language and charset. For internal use only. More...
 
CoreExport HFONT GetUIFontBold ()
 Return the standard bold font used in 3ds Max's user interface. More...
 
CoreExport HFONT GetUIFontBold_LocalCharSet ()
 Return the standard bold font used in 3ds Max's user interface, depending on the language and charset. For internal use only. More...
 
CoreExport LONG GetUIFontHeight ()
 Returns the height of standard font which used in 3ds Max's user interface. More...
 
CoreExport LONG GetUIFontHeightSmall ()
 Returns the height of small font which used in 3ds Max's user interface. More...
 
CoreExport DWORD GetUIFontCharset ()
 Returns character set for the current language used in 3ds Max's user interface. More...
 
CoreExport const MCHARGetUIFontFace ()
 Returns the font face string for the standard font used in 3ds Max's user interface. More...
 
CoreExport float GetUIFontPointSize ()
 Returns the font point size 8 points for the standard font used in 3ds Max's user interface. More...
 
CoreExport HFONT CreateCustomizedFont (const MSTR &fontName, int fontSizeUnit, float fontSize, long weight=400, bool isItalic=false, bool isUnderlined=false)
 Return the customized font with the given font name, size and if the font size is point size. More...
 
CoreExport HFONT GetUIFontSmall ()
 Return the standard small font 6 points used in 3ds Max's user interface. More...
 
CoreExport HFONT GetUIFontLight ()
 Return the standard light font used in 3ds Max's user interface, weight = FW_LIGHT(300). More...
 
CoreExport HFONT GetUIFontItalic ()
 Return the standard italic font used in 3ds Max's user interface. More...
 

Detailed Description

The user interface of 3ds Max 2010 uses the font returned by GetUIFont().

The "UI font" is anti-aliased when the operating system provides support for it.

If there's a need to draw text with non-antialised fonts, please use the Fixed font related methods.

Function Documentation

◆ GetUIFont()

CoreExport HFONT GetUIFont ( )

Return the standard font used in 3ds Max's user interface.

Returns
HFONT object representing the font

◆ GetUIFont_LocalCharSet()

CoreExport HFONT GetUIFont_LocalCharSet ( )

Return the standard font used in 3ds Max's user interface, depending on the language and charset. For internal use only.

Returns
HFONT object representing the font

◆ GetUIFontBold()

CoreExport HFONT GetUIFontBold ( )

Return the standard bold font used in 3ds Max's user interface.

Returns
HFONT object representing the font

◆ GetUIFontBold_LocalCharSet()

CoreExport HFONT GetUIFontBold_LocalCharSet ( )

Return the standard bold font used in 3ds Max's user interface, depending on the language and charset. For internal use only.

Returns
HFONT object representing the font

◆ GetUIFontHeight()

CoreExport LONG GetUIFontHeight ( )

Returns the height of standard font which used in 3ds Max's user interface.

Returns
Font height (14 for English & European languages, 12 for Asian languages)

◆ GetUIFontHeightSmall()

CoreExport LONG GetUIFontHeightSmall ( )

Returns the height of small font which used in 3ds Max's user interface.

Returns
Font height (8 for English & European languages, 9 for Asian languages)

◆ GetUIFontCharset()

CoreExport DWORD GetUIFontCharset ( )

Returns character set for the current language used in 3ds Max's user interface.

Returns
character set for the current language

◆ GetUIFontFace()

CoreExport const MCHAR* GetUIFontFace ( )

Returns the font face string for the standard font used in 3ds Max's user interface.

Returns
Font face string for the standard font.

◆ GetUIFontPointSize()

CoreExport float GetUIFontPointSize ( )

Returns the font point size 8 points for the standard font used in 3ds Max's user interface.

Returns
Font point size for the standard font.

◆ CreateCustomizedFont()

CoreExport HFONT CreateCustomizedFont ( const MSTR fontName,
int  fontSizeUnit,
float  fontSize,
long  weight = 400,
bool  isItalic = false,
bool  isUnderlined = false 
)

Return the customized font with the given font name, size and if the font size is point size.

Parameters
[in]fontNameThe font typeface name.
[in]fontSizeUnitSpecify if the fontSize is measured by the point size(0), the pixels(1), or the cell height(2).
[in]fontSizeThe font size, it could be the point size, the pixel size, or the cell height.
[in]weightThe font weight.
[in]isItalicSpecify if the font is italic.
[in]isUnderlinedSpecify if the font is underlined.
Returns
The customized font defined by the users.

◆ GetUIFontSmall()

CoreExport HFONT GetUIFontSmall ( )

Return the standard small font 6 points used in 3ds Max's user interface.

Returns
HFONT object representing the font

◆ GetUIFontLight()

CoreExport HFONT GetUIFontLight ( )

Return the standard light font used in 3ds Max's user interface, weight = FW_LIGHT(300).

Returns
HFONT object representing the font

◆ GetUIFontItalic()

CoreExport HFONT GetUIFontItalic ( )

Return the standard italic font used in 3ds Max's user interface.

Returns
HFONT object representing the font