Font Rendering

Provides a set of functions to perform text rendering tasks. More...

Data Structures

struct  MFFont
 Represents a Fuji Font. More...

Enumerations

enum  MFFontJustify {
  MFFontJustify_Top_Left, MFFontJustify_Top_Center, MFFontJustify_Top_Right, MFFontJustify_Top_Full,
  MFFontJustify_Center_Left, MFFontJustify_Center, MFFontJustify_Center_Right, MFFontJustify_Center_Full,
  MFFontJustify_Bottom_Left, MFFontJustify_Bottom_Center, MFFontJustify_Bottom_Right, MFFontJustify_Bottom_Full,
  MFFontJustify_Max, MFFontJustify_ForceInt = 0x7FFFFFFF
}
 Font Justification. More...

Functions

MFFontMFFont_Create (const char *pFilename)
 Create a font.
void MFFont_Destroy (MFFont *pFont)
 Destroy a font.
float MFFont_GetFontHeight (MFFont *pFont)
 Get the height of a font.
float MFFont_GetCharacterWidth (MFFont *pFont, int character)
 Get the width of a character.
MFVector MFFont_GetCharPos (MFFont *pFont, const char *pText, int charIndex, float height)
 Get the character offset into a string.
float MFFont_GetStringWidth (MFFont *pFont, const char *pText, float height, float lineWidth=0.0f, int maxLen=-1, float *pTotalHeight=NULL)
 Get the physical width of a string.
int MFFont_BlitText (MFFont *pFont, int x, int y, const MFVector &colour, const char *pText, int maxChars=-1)
 Blit a string to the screen.
int MFFont_BlitTextf (MFFont *pFont, int x, int y, const MFVector &colour, const char *pFormat,...)
 Blit a formatted string to the screen.
float MFFont_DrawText (MFFont *pFont, const MFVector &pos, float height, const MFVector &colour, const char *pText, int maxChars=-1, const MFMatrix &ltw=MFMatrix::identity)
 Render a string.
float MFFont_DrawText (MFFont *pFont, float x, float y, float height, const MFVector &colour, const char *pText, int maxChars=-1, const MFMatrix &ltw=MFMatrix::identity)
 Render a string.
float MFFont_DrawTextf (MFFont *pFont, const MFVector &pos, float height, const MFVector &colour, const char *pFormat,...)
 Render a formatted string.
float MFFont_DrawTextf (MFFont *pFont, float x, float y, float height, const MFVector &colour, const char *pFormat,...)
 Render a formatted string.
MFFontMFFont_GetDebugFont ()
 Get the debug font.

Detailed Description

Fuji Fonts are generated from source data produced by the excellent BMFont tool written and maintained by Andreas Jönsson.
The tool can be downloaded here: http://www.angelcode.com/products/bmfont/
Basic unicode support is available by submitting unicode strings beginning with the unicode character 0xFEFF to the standard ascii versions of these functions.

Generated on Sat Oct 28 16:27:34 2006 for MountFuji Engine by  doxygen 1.4.5