BezFontManager Class Reference
 
 
 
BezFontManager Class Reference

This reference page is linked to from the following overview topics: New Classes and Methods.


#include <bezfont.h>

Inheritance diagram for BezFontManager:
MaxHeapOperators

Class Description

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

Constructor & Destructor Documentation

CoreExport BezFontManager ( )
CoreExport ~BezFontManager ( )

Member Function Documentation

CoreExport void SetInterface ( FontMgrInterface i ) [inline]
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 
)
Deprecated:
in 3ds Max 2014. Use BuildCharacterEx instead.
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.

See also:
class BezFontEX2
Parameters:
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
Returns:
Returns FALSE and zero width if character not available.
CoreExport FontMgrInterface* GetInterface ( ) [inline]
{ return iface; }
CoreExport BOOL GetFontInfo ( MSTR  name,
BezFontInfo info 
)
CoreExport HFONT GetFont ( BEZFONTHANDLE  handle )

Friends And Related Function Documentation