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

#include <ITextAttrFont.h>

Inheritance diagram for ITextAttrFont:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_ITEXTATTRFONT }
 
typedef bool16 ValueType
 

Public Member Functions

virtual const PMStringGetFontName () const =0
 
virtual void SetFontName (const PMString &ss, bool16 clearMM=kTrue)=0
 
virtual void SetMMAxes (int32 num, const Fixed *buffer)=0
 
virtual int32 GetNumMMAxes () const =0
 
virtual const Fixed * GetMMAxes () const =0
 
virtual void SetInheritAxis (bool16 inherit)=0
 
virtual bool16 GetInheritAxis () const =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

This is an attribute for the font style.

Member Function Documentation

virtual const PMString& ITextAttrFont::GetFontName () const
pure virtual

Get the font style name. Also called font face

Returns
font style name
virtual bool16 ITextAttrFont::GetInheritAxis () const
pure virtual

Get Inherit Axis

Returns
kTrue if inherit axis is set true
virtual const Fixed* ITextAttrFont::GetMMAxes () const
pure virtual

Get multiple master axes

Returns
Fixed*
virtual int32 ITextAttrFont::GetNumMMAxes () const
pure virtual

Get number multiple master axes

Returns
number of axes
virtual void ITextAttrFont::SetFontName (const PMStringss,
bool16 clearMM = kTrue 
)
pure virtual

Set the font style name. Also called font face

Parameters
ssfont style name to set
clearMMif kTrue multiple master style are cleared.
virtual void ITextAttrFont::SetInheritAxis (bool16 inherit)
pure virtual

Setting inherit axis info to kTrue means that when applying this attribute the existing axis info in the text runs will be inherited. Make sure that if you call SetInheritAxisInfo with kTrue you do not call SetMMAxes. You cannot inherit and set at the same time.

Parameters
inherit
virtual void ITextAttrFont::SetMMAxes (int32 num,
const Fixed * buffer 
)
pure virtual

Set multiple master axes. For a general description of multiple master fonts axes see http://partners.adobe.com/asn/tech/type/mmfonts.jsp . If you want to set this you can use the value from either IPMFont::GetNumDesignAxes() and IPMFont AccessDesignVector or FontGroupIteratorCallBack::OnMMAxes

Parameters
numnumber of axes
bufferbuffer with axes