![]() | InDesign SDK 20.5 |
#include <ICompositeFont.h>

Public Types | |
| enum | { kDefaultIID = IID_ICOMPOSITEFONT } |
Public Member Functions | |
| virtual UID | GetBasedOn () const =0 |
| virtual PMString | GetFontFamilyName () const =0 |
| virtual const PMString & | GetNativeFontFamilyName () const =0 |
| virtual void | SetBasedOn (const UID &base)=0 |
| virtual void | SetName (const PMString &s)=0 |
| virtual const PMString & | GetNameStyle () const =0 |
| virtual void | SetNameStyle (const PMString &s)=0 |
| virtual PMString | GetPostScriptName ()=0 |
| virtual void | SetPostScriptName (const PMString &s)=0 |
| virtual const PMString & | GetCMapFileName () const =0 |
| virtual void | SetCMapFileName (const PMString &s)=0 |
| virtual int32 | GetCharClassLength ()=0 |
| virtual ICompFontDataSettings * | GetCharClass (int32 index) const =0 |
| virtual ICompFontDataSettings * | GetCharClass (const PMString &nameString) const =0 |
| virtual ICompFontDataSettings * | GetCharClass (UTF32TextChar findChar, UTF32TextChar *remapChar=nil) const =0 |
| virtual UID | GetCharClassUID (int32 index) const =0 |
| virtual int32 | GetCharClassIndex (const PMString &nameString) const =0 |
| virtual ICompFontDataSettings * | CreateCharClass ()=0 |
| virtual void | AppendCharClass (const UID newSetting)=0 |
| virtual void | AppendCharClass (ICompFontDataSettings *newSetting)=0 |
| virtual void | RemoveCharClass (int32 nIndex)=0 |
| virtual void | UnRemoveCharClass (UID nUID)=0 |
| virtual void | CopyCompositeFontData (ICompositeFont *from)=0 |
| virtual void | CopyAndConvertCompositeFontData (ICompositeFont *from, IDataBase *sourceDB, IDataBase *destDB)=0 |
| virtual const PMString | GetPSFontName (const int32 nCharClass, bool16 fEncoding=kTrue) const =0 |
| virtual bool16 | CompareCompositeFontData (ICompositeFont *srcData)=0 |
| virtual void | DeleteCompositeFontData ()=0 |
| virtual bool16 | IsDirty ()=0 |
| virtual boost::shared_ptr < CmdUtils::AutoUndoSequencePtr > | DoDirty ()=0 |
| virtual void | SetLocked (const bool16 locked)=0 |
| virtual bool16 | IsLocked () const =0 |
| virtual void | SetFontMatrixAdjustment (const uint16 verticalBaselineShift)=0 |
| virtual uint16 | GetFontMatrixAdjustment () const =0 |
| virtual void | ReadWrite (IPMStream *s, ImplementationID id)=0 |
| virtual ErrorCode | ReadWriteRffFile (IPMStream *s)=0 |
| virtual IDocument * | GetDocument () const =0 |
| virtual void | SetDocument (IDocument *theDocWS)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Composite Font. creates a new font composed of real fonts. Font switching is based on unicode value. Currently base font must be either Chinese, Japanese, or Korean font.
| pure virtual |
Append setting to composite font
| newSetting | new settting to append. |
| pure virtual |
Append setting to composite font
| newSetting | new settting to append. |
| pure virtual |
Compare composite fonts and return kTrue if they are the same
| srcData | composite font to compare to |
| pure virtual |
Copy composite font data. This will conver the font family UIDs from source DB to dest DB
| from | composite font data to cop |
| sourceDB | database of from composite font data |
| destDB | database of this composite font data |
| pure virtual |
Copy composite font data
| from | composite font data to copy |
| pure virtual |
Create a new setting. New setting is already appended to composite font
| pure virtual |
Delete all settings in composite font
| pure virtual |
Set dirty
| pure virtual |
This value is set with SetBasedOn but not used internally
| pure virtual |
Get setting at index.
| index | 0 based index. must be < GetCharClassLength |
| pure virtual |
find Class by name
| nameString | name to find |
| pure virtual |
find class with findChar in its range. Search from end as the last item has precedence
| findChar | unicode value to find |
| remapChar | OUT value of what find char is remapped to in found setting |
| pure virtual |
find Class by name
| nameString | name to find |
| pure virtual |
Get number of ICompFontDataSetting interfaces for this composite font
| pure virtual |
get Class UID by index. UID is a ICompFontDataSetting UID
| nameString | index of class |
| pure virtual |
Get file name of composite font.
| pure virtual |
Should not use this. Only used in special cases where commands are used.
| pure virtual |
Family name of composite font. This is set with SetName(). It is the same as GetFontFamilyName() except this is always roman encoded. So if there are non roman characters their unicode will be embedded.
| pure virtual |
OBSOLETE
| pure virtual |
This is usually an empty string.
| pure virtual |
| pure virtual |
Postscript name for composite font. This is usually generated from name set with SetName.
| pure virtual |
Get postscript font name of font assigned to nCharClass setting.
| nCharClass | setting to get postscript font name from |
| fEncoding | encoding of setting is appended to postscriptname. For instance if script of base font is Japanese "-UniJIS-UTF16-H" will be appended |
| pure virtual |
OBSOLETE
| pure virtual |
Gets locked status of composite font.
| pure virtual |
Read/Write the setting data
| s | stream to read write |
| id | not used |
| pure virtual |
Read or write composite font out to a file that can be read as a font.
| s | stream to write to |
| pure virtual |
Remove setting at index
| nIndex | setting index to remove |
| pure virtual |
Value is saved but not used internally
| base | not used |
| pure virtual |
Set file name of composite font.
| PMString | file name of composite font |
| pure virtual |
Should not use this. Only used in special cases where commands are used.
| theDocWS | document |
| pure virtual |
OBSOLETE
| verticalBaselineShift |
| pure virtual |
Sets composite font so user cannot edit. this is the case for external ATC fonts becuase we cannot create the same font that ATC does (ATC fonts have extra data)
| bool16 | kTrue to set lock. kFalse to set unlocked |
| pure virtual |
Set the composite font name. To get this name call GetNativeFontFamilyName
| s | composite font name |
| pure virtual |
This is generally not called. The default of empty string is fine
| s | composite font style name. |
| pure virtual |
Set postscript name for composite font.
| s | new postscript name |
| pure virtual |
Undeletes UID and appends it to composite font.
| nUID | UID to unremove |