Developer

API Reference

IHFont_SetTypeface()

Brew Release
Brew MP 1.0.2
See Also
IHFont IHFont_GetTypeface ITypeface_NewFontFromClassID
Description
This routine sets the typeface of a truetype font.
Parameters
  • pif
    []:
    [in] Pointer to the IHFont interface object
  • pit
    []:
    [in] The typeface to use.
Interface
Prototype
   int IHFont_SetFontSize(IHFont *pif, ITypeface *pit);
Return
   AEE_SUCCESS - If the font is able to set the typeface.
   AEE_EFAILED - If the font was unable to set the typeface.
Side Effect
None
Comment

Applications should never use this property unless they're loading fonts from a BREW TrueType Font Extension. This property allows applications to associate a Typeface instance with an IHFont object created via ISHELL_CreateInstance() for efficient memory use. This property can only be set before the IHFont object has been called to return info, measure text or draw text.
It is recommended apps use ITypeface_NewFontFromClassID() to create IHFonts from font extensions rather than using ISHELL_CreateInstance() and setting this property.
  • Follow