MFFont.h File Reference

Font rendering interface. 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

Author:
Manu Evans

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