3ds Max C++ API Reference
BezFontManager Class Reference

Manages Bezier Fonts in 3ds Max. More...

#include <bezfont.h>

+ Inheritance diagram for BezFontManager:

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. More...
 
CoreExport BEZFONTHANDLE OpenFont (MSTR name, DWORD flags)
 
CoreExport BOOL CloseFont (BEZFONTHANDLE handle)
 Returns TRUE if the font is still in use, FALSE otherwise. More...
 
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. More...
 
CoreExport FontMgrInterfaceGetInterface ()
 
CoreExport BOOL GetFontInfo (MSTR name, BezFontInfo &info)
 
CoreExport HFONT GetFont (BEZFONTHANDLE handle)
 

Friends

class BezFontMgrEnumProc
 

Additional Inherited Members

- Static Public Member Functions inherited from MaxHeapOperators
static UtilExport voidoperator new (size_t size)
 Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e)
 Standard new operator used to allocate objects if there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate objects that takes the type of memory, filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate arrays of objects. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport void operator delete (void *ptr)
 Standard delete operator used to deallocate an object If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an object If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an object that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, void *placement_ptr)
 Placement new operator. More...
 
static UtilExport void operator delete (void *ptr, void *placement_ptr)
 Placement delete operator. More...
 
static UtilExport voidaligned_malloc (size_t size, size_t alignment)
 Allocates memory on a specified alignment boundary. More...
 
static UtilExport voidaligned_realloc (void *ptr, size_t size, size_t alignment)
 Reallocates memory on a specified alignment boundary. More...
 
static UtilExport void aligned_free (void *ptr)
 Frees a block of memory that was allocated with aligned_malloc/aligned_realloc. More...
 

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

Constructor & Destructor Documentation

◆ BezFontManager()

◆ ~BezFontManager()

Member Function Documentation

◆ SetInterface()

CoreExport void SetInterface ( FontMgrInterface i)
inline
261 { iface = i; }

◆ Init()

CoreExport void Init ( )

◆ Uninit()

CoreExport void Uninit ( )

◆ Reinit()

CoreExport void Reinit ( )

◆ EnumerateFonts()

CoreExport void EnumerateFonts ( BezFontEnumProc proc,
LPARAM  userInfo 
)

◆ FontExists()

CoreExport BOOL FontExists ( MSTR  name)

Returns TRUE if the font is available, FALSE otherwise.

◆ OpenFont()

CoreExport BEZFONTHANDLE OpenFont ( MSTR  name,
DWORD  flags 
)

◆ CloseFont()

CoreExport BOOL CloseFont ( BEZFONTHANDLE  handle)

Returns TRUE if the font is still in use, FALSE otherwise.

◆ BuildCharacterEx()

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
handle- The handle
index- The index
height- The height
shape- The bezier shape
width- The out parameter containing the width of the character
fontShapeVersion- The version. Default value of 1
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.

◆ GetInterface()

CoreExport FontMgrInterface* GetInterface ( )
inline
283 { return iface; }

◆ GetFontInfo()

CoreExport BOOL GetFontInfo ( MSTR  name,
BezFontInfo info 
)

◆ GetFont()

CoreExport HFONT GetFont ( BEZFONTHANDLE  handle)

Friends And Related Function Documentation

◆ BezFontMgrEnumProc

friend class BezFontMgrEnumProc
friend