InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IInterfaceFonts Class Referenceabstract

#include <IInterfaceFonts.h>

Inheritance diagram for IInterfaceFonts:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IINTERFACEFONTS }
 

Public Member Functions

virtual const InterfaceFontInfoGetFont (const int32 &interfaceElementId) const =0
 
virtual const InterfaceFontInfoGetFont (const PMLocaleId &locale, const int32 &interfaceElementId) const =0
 
virtual void SetFont (const PMLocaleId &locale, const int32 &interfaceElementId, const PMString &fontName, const int16 &fontSize, const int16 &fontAttributes)=0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

Interface for specifying which set of UI fonts to use for the application

Member Function Documentation

virtual const InterfaceFontInfo& IInterfaceFonts::GetFont (const int32 & interfaceElementId) const
pure virtual

Get the font used for a given interface font ID.

Parameters
interfaceElementIdspecifies which interface font we're interested in.
See Also
ShuksanID.h for interface font IDs, i.e. kPaletteWindowFontId
Returns
which font to use for this interface font id
virtual const InterfaceFontInfo& IInterfaceFonts::GetFont (const PMLocaleIdlocale,
const int32 & interfaceElementId 
) const
pure virtual

Get the font used for a given interface font ID.

Parameters
localespecifies which locale we're interested in. Different locales may use different fonts
interfaceElementIdspecifies which interface font we're interested in.
See Also
ShuksanID.h for interface font IDs, i.e. kPaletteWindowFontId
Returns
which font to use for this interface font id
virtual void IInterfaceFonts::SetFont (const PMLocaleIdlocale,
const int32 & interfaceElementId,
const PMStringfontName,
const int16 & fontSize,
const int16 & fontAttributes 
)
pure virtual

Set the font used for a given interface font ID.

Parameters
localespecifies which locale we're interested in. Different locales may use different fonts
interfaceElementIdspecifies which interface font we're interested in.
See Also
ShuksanID.h for interface font IDs, i.e. kPaletteWindowFontId
Parameters
fontNamespecifies the name of the font to use for the specified interface font id in the specified locale.
fontSizespecifies the font size to use for the specified interface font id in the specified locale
fontAttributesspecifies the font attributes to use for the specified interface font id in the specified locale, i.e. kInterfaceFontBold