Developer

API Reference

IFontMapModel_Insert()

Brew Release
Brew MP 1.0.2
See Also
- IFontMapModel_GetByName()
Description
This function is used to add a style tag/IFont pair to the IFontMapModel.
Applications that are building a style map to map HTML tags to particular IFont instances would use this routine to specify what IFont to use for "", for example.
Parameters
  • pif
    []:
    [in] Pointer to the IFontMapModel interface object.
  • pszName
    []:
    [in] An AECHAR string containing the name of the style. These are the actual characters of the style tag in the text.
  • piFont
    []:
    [in] Pointer to an IFont interface object that will be used to render the text that falls within the pszName tag range.
Interface
Prototype
   uint32 IFontMapModel_Insert(
      IFontMapModel *pif, 
      const AECHAR* pszName, 
      IFont* piFont);
   
Return
   AEE_SUCCESS when the style was successfully inserted
   error otherwise
Side Effect
None
Comment
None
  • Follow