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

#include <IUsedFontList.h>

Inheritance diagram for IUsedFontList:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IUSEDFONTLIST }
 

Public Member Functions

virtual int32 CountUsedFontFamilies ()=0
 
virtual UID GetUsedFontFamily (int32 n)=0
 
virtual int32 CountUsedFontVariants (UID family)=0
 
virtual const PMStringGetUsedFontVariant (UID family, int32 n)=0
 
virtual int32 CountMissingFonts (bool16 recalculate=kTrue)=0
 
virtual void GetMissingFont (int32 n, UID *family, PMString &setMe, int32 *oldTech=nil, int32 *newTech=nil, bool16 recalculate=kTrue)=0
 
virtual void ForceRecalculateAll ()=0
 
virtual void Add_NeedToProcessReferencesto_UsedToBe_DysfunctionalFont (UID familyUID, UID familyReplacement)=0
 
virtual void AttemptAutoActivation ()=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

List of fonts used in the document.

Member Function Documentation

virtual void IUsedFontList::Add_NeedToProcessReferencesto_UsedToBe_DysfunctionalFont (UID familyUID,
UID familyReplacement 
)
pure virtual

Updates document's IFontFamily UIDs and font style names after fixing dysfunctional fonts. This is used when we open old documents that have an old font style names that refers to a postscript name that now is reffered to by a different style name.

Parameters
familyUIDold dysfunctional IFontFamily UID
familyReplacementnew IFontFamily UID to use
virtual void IUsedFontList::AttemptAutoActivation ()
pure virtual

Attempt to auto activate missing fonts.

virtual int32 IUsedFontList::CountMissingFonts (bool16 recalculate = kTrue)
pure virtual

Count the number of missing fonts.

Parameters
recalculateIf kTrue we recalculate missing fonts
Returns
int32 number of missing fonts
virtual int32 IUsedFontList::CountUsedFontFamilies ()
pure virtual

Counts number of IFontFamily UIDs used in the document

Returns
int32 number of font families used in document
virtual int32 IUsedFontList::CountUsedFontVariants (UID family)
pure virtual

Counts the number of font styles for a given IFontFamily that are used in the document

Parameters
familyUID of IFontFamily
Returns
int32 number of style variants found
virtual void IUsedFontList::ForceRecalculateAll ()
pure virtual

Recalculates the list. Calling this will cause the missing font list to be recalculated by looking at all stories in the pub. Please use sparingly.

virtual void IUsedFontList::GetMissingFont (int32 n,
UIDfamily,
PMStringsetMe,
int32 * oldTech = nil,
int32 * newTech = nil,
bool16 recalculate = kTrue 
)
pure virtual

Get nth missing font. Use this with CountMissingFonts to iterate through all missing fonts in the document.

Parameters
nIndex into missing font list
*familyOUT nth missing IFontFamily UID of this missing font
setMeOUT font style of this missing font
*oldTechOUT IPMFont::FontType of missing font
*newTechOUT IPMFont::FontType of missing font. This will be different than oldTech if the document was open when a different FontType of this font was available.
recalculaterecalculate missing fonts.
virtual UID IUsedFontList::GetUsedFontFamily (int32 n)
pure virtual

Gets the nth IFontFamily UID in list. Use this with CountUsedFontFamilies to iterate through all used IFontFamilies

Parameters
nIndex into Used font list. Starts at 0.
Returns
UID IFontFamily UID
virtual const PMString* IUsedFontList::GetUsedFontVariant (UID family,
int32 n 
)
pure virtual

Gets the nth font style for a given IFontFamily that is used in the document. Use this with CountUsedFontVariants to iterate through all used font styles in an IFontFamily.

Parameters
familyUID of IFontFamily
nIndex into IFontFamily font style list
Returns
PMString Non native style name of nth font style