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

#include <IFontGroup.h>

Inheritance diagram for IFontGroup:
grRefCountedObj

Public Member Functions

virtual const PMStringGetGroupName () const =0
 
virtual const PMStringGetGroupNameNative () const =0
 
virtual int32 GetNumFonts () const =0
 
virtual CTFamily * GetCTFamily () const =0
 
virtual void GetGroupsWithSameName (K2Vector< int32 > &fontGroups) const =0
 
virtual PMString GetUniqueFamilyNameEnding () const =0
 
virtual int32 GetFontGroupIndex () const =0
 
virtual int32 GetDictIndex (int32 index, int32 &actualIndexInDict) const =0
 
virtual void GetDefaultVariableFontName (PMString &fontName) const =0
 
- Public Member Functions inherited from grRefCountedObj
 grRefCountedObj ()
 
virtual ~grRefCountedObj ()=0
 
virtual void AddRef () const
 
virtual void Release () const
 

Additional Inherited Members

- Protected Attributes inherited from grRefCountedObj
int32 fRefCount
 

Detailed Description

This is a shell over the CoolType API for fontGroups.

Member Function Documentation

virtual CTFamily* IFontGroup::GetCTFamily () const
pure virtual

Get the CoolType font family

Returns
CoolType font family (Declaration not available via public API)
virtual void IFontGroup::GetDefaultVariableFontName (PMStringfontName) const
pure virtual

This method returns the CoolType returned PS name of default font in a font group.

Parameters
fontName[Out] CoolType PS name of default font in a font group.
virtual int32 IFontGroup::GetDictIndex (int32 index,
int32 & actualIndexInDict 
) const
pure virtual
Parameters
indexThe index of named/custom instance in font group
actualIndexInDictOUT The corresponding index of named/custom instance in a font dict
Returns
Index of the dictionary to which named/custom instance belongs
virtual int32 IFontGroup::GetFontGroupIndex () const
pure virtual

Index of group.

Returns
index of group
virtual const PMString& IFontGroup::GetGroupName () const
pure virtual

Get name of the group. This is also called family name.

Returns
name of group
virtual const PMString& IFontGroup::GetGroupNameNative () const
pure virtual

Get native name of the group. This is also called native family name.

Returns
native name of group
virtual void IFontGroup::GetGroupsWithSameName (K2Vector< int32 > & fontGroups) const
pure virtual

Gets groups with same name. This will return all the groups with the same name. If fontGroups only has 1 value then there is only one font group with this name.

Parameters
fontGroupsOUT vector of font group identifiers. Call IFontManager's QueryFontGroup() with these number to get a group.
virtual int32 IFontGroup::GetNumFonts () const
pure virtual

Number of CTFontDicts in this group. This number can be different for Roman and Japanese UI depending on the font.

Returns
number of font styles in this group
virtual PMString IFontGroup::GetUniqueFamilyNameEnding () const
pure virtual

If more than one family has the same name this gets a unique string to append to the family name to get a unique name. Unique names are required currently for menus. Appends font type (TT) and possibly script.

Returns
unique string to add to family name