This reference page is linked to from the following overview topics: New Classes and Methods.
#include <bezfont.h>
Manages Bezier Fonts in 3ds Max.
This is the interface into Bezier fonts within the 3ds Max. This includes TrueType fonts and any other fonts supported via plugins.
Public Member Functions |
|
CoreExport | BezFontManager () |
CoreExport | ~BezFontManager () |
CoreExport void | SetInterface (FontMgrInterface *i) |
CoreExport void | Init () |
CoreExport void | Uninit () |
CoreExport void | Reinit () |
CoreExport void | EnumerateFonts (BezFontEnumProc &proc, LPARAM userInfo) |
CoreExport BOOL | FontExists (MSTR name) |
Returns TRUE if the font is available, FALSE
otherwise. |
|
CoreExport BEZFONTHANDLE | OpenFont (MSTR name, DWORD flags) |
CoreExport BOOL | CloseFont (BEZFONTHANDLE handle) |
Returns TRUE if the font is still in use,
FALSE otherwise. |
|
CoreExport BOOL | BuildCharacter (BEZFONTHANDLE handle, UINT index, float height, BezierShape &shape, float &width, int fontShapeVersion=1) |
CoreExport BOOL | BuildCharacterEx (BEZFONTHANDLE handle, UINT index, float height, BezierShape &shape, float &width, int fontShapeVersion=1, bool ggo_native=false) |
Build the given bezier from of the character
in the given shape, and send back its relative width. |
|
CoreExport FontMgrInterface * | GetInterface () |
CoreExport BOOL | GetFontInfo (MSTR name, BezFontInfo &info) |
CoreExport HFONT | GetFont (BEZFONTHANDLE handle) |
Friends |
|
class | BezFontMgrEnumProc |
CoreExport BezFontManager | ( | ) |
CoreExport ~BezFontManager | ( | ) |
CoreExport void SetInterface | ( | FontMgrInterface * | i | ) | [inline] |
{ iface = i; }
CoreExport void Init | ( | ) |
CoreExport void Uninit | ( | ) |
CoreExport void Reinit | ( | ) |
CoreExport void EnumerateFonts | ( | BezFontEnumProc & | proc, |
LPARAM | userInfo | ||
) |
CoreExport BOOL FontExists | ( | MSTR | name | ) |
Returns TRUE if the font is available, FALSE otherwise.
CoreExport BEZFONTHANDLE OpenFont | ( | MSTR | name, |
DWORD | flags | ||
) |
CoreExport BOOL CloseFont | ( | BEZFONTHANDLE | handle | ) |
Returns TRUE if the font is still in use, FALSE otherwise.
CoreExport BOOL BuildCharacter | ( | BEZFONTHANDLE | handle, |
UINT | index, | ||
float | height, | ||
BezierShape & | shape, | ||
float & | width, | ||
int | fontShapeVersion =
1 |
||
) |
CoreExport BOOL BuildCharacterEx | ( | BEZFONTHANDLE | handle, |
UINT | index, | ||
float | height, | ||
BezierShape & | shape, | ||
float & | width, | ||
int | fontShapeVersion =
1 , |
||
bool | ggo_native =
false |
||
) |
Build the given bezier from of the character in the given shape, and send back its relative width.
BEZFONTHANDLE | handle - The handle |
UINT | index - The index |
float | height - The height |
BezierShape& | shape - The bezier shape |
float& | width - The out parameter containing the width of the character |
int | fontShapeVersion - The version. Default value of 1 |
bool | ggo_native -if true, build character shape of glyph outline data on TrueType Glyph Index, otherwise on a character code |
CoreExport FontMgrInterface* GetInterface | ( | ) | [inline] |
{ return iface; }
CoreExport BOOL GetFontInfo | ( | MSTR | name, |
BezFontInfo & | info | ||
) |
CoreExport HFONT GetFont | ( | BEZFONTHANDLE | handle | ) |
friend class BezFontMgrEnumProc
[friend] |