User Interface (UI) font related methods

User Interface (UI) font related methods

Module 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.

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...
 

Function Documentation

CoreExport HFONT GetUIFont ( )

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

Returns
HFONT object representing the font
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
CoreExport HFONT GetUIFontBold ( )

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

Returns
HFONT object representing the font
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
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)
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)
CoreExport DWORD GetUIFontCharset ( )

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

Returns
character set for the current language
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.
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.
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.
CoreExport HFONT GetUIFontSmall ( )

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

Returns
HFONT object representing the font
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
CoreExport HFONT GetUIFontItalic ( )

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

Returns
HFONT object representing the font