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

#include <IPreflightArtworkTextInfo.h>

Inheritance diagram for IPreflightArtworkTextInfo:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IPREFLIGHTARTWORKTEXTINFO }
 
enum  FontType {
  kFontType_Invalid, kFontType_Type1, kFontType_TrueType, kFontType_CID,
  kFontType_ATC, kFontType_Bitmap, kFontType_OpenTypeCFF, kFontType_OpenTypeCID,
  kFontType_OpenTypeTT, kFontType_Type3, kFontType_SVG
}
 
enum  FontTechnology {
  kFontTech_Invalid, kFontTech_Type1, kFontTech_TrueType, kFontTech_CID,
  kFontTech_Bitmap, kFontTech_ATC, kFontTech_Type3
}
 

Public Member Functions

virtual PMMatrix GetCharMatrix () const =0
 
virtual PMMatrix GetTextMatrix () const =0
 
virtual uint32 GetNumGlyphs () const =0
 
virtual int32 GetNthGlyph (uint32 n, PMPoint *pWhere, bool *pIsValid) const =0
 
virtual FontType GetFontType () const =0
 
virtual FontTechnology GetFontTechnology () const =0
 
virtual bool GetFontIsProtected () const =0
 
virtual bool GetFontIsReal () const =0
 
virtual PMString GetFontName () const =0
 
virtual bool GetFontIsCFF () const =0
 
virtual bool GetFontIsSING () const =0
 
virtual bool GetFontHasOutlines () const =0
 
virtual bool GetFontIsEmbedded () const =0
 
virtual bool GetFontIsMultipleMaster () 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 interface provides text and font information for a marking operation. This is broken out from IPreflightArtworkMarkInfo to avoid overwhelming that interface with text APIs.

See Also
IPreflightArtworkMarkInfo

Member Enumeration Documentation

Types returned by GetFontTechnology. These are a slightly different way to slice the categorization and may differentiate between some of the above cases.

Types returned by GetFontType.

Member Function Documentation

virtual PMMatrix IPreflightArtworkTextInfo::GetCharMatrix () const
pure virtual

Get the character matrix for a text marking operation. This is generally used to determine the 'native' point size of the text.

Returns
The character matrix.
virtual bool IPreflightArtworkTextInfo::GetFontHasOutlines () const
pure virtual
Returns
true iff the font has outlines; if not, it's a bitmap.
virtual bool IPreflightArtworkTextInfo::GetFontIsCFF () const
pure virtual
Returns
true iff the font is CFF.
virtual bool IPreflightArtworkTextInfo::GetFontIsEmbedded () const
pure virtual
Returns
true iff the font source was an embedded in EPS or PDF.
virtual bool IPreflightArtworkTextInfo::GetFontIsMultipleMaster () const
pure virtual
Returns
true iff the font is a multiple master font.
virtual bool IPreflightArtworkTextInfo::GetFontIsProtected () const
pure virtual

Get whether the font is protected.

Returns
True if protected; false otherwise.
virtual bool IPreflightArtworkTextInfo::GetFontIsReal () const
pure virtual

Get whether the font is real, as opposed to a substituted or fauxed font because the original font is not available.

Returns
True if real; false otherwise.
virtual bool IPreflightArtworkTextInfo::GetFontIsSING () const
pure virtual
Returns
true iff the font is a SING glyphlet.
virtual PMString IPreflightArtworkTextInfo::GetFontName () const
pure virtual

Get the name of the font used for a text marking operation. Note that there is a specific hierarchy for determining this name:

  • If the font is a substitute for another font, returns the name of the font it was substituted for.
  • Else, if a "full name" for the font is available, that's returned.
  • Else the postscript name of the font is returned.
Returns
The name of the font.
virtual FontTechnology IPreflightArtworkTextInfo::GetFontTechnology () const
pure virtual

Get the type of font technology used for a text marking operation.

Returns
The font technology type.
virtual FontType IPreflightArtworkTextInfo::GetFontType () const
pure virtual

Get the type of font used for a text marking operation.

Returns
The font type.
virtual int32 IPreflightArtworkTextInfo::GetNthGlyph (uint32 n,
PMPointpWhere,
bool * pIsValid 
) const
pure virtual

Get the Nth glyph and associated information.

Parameters
nIN The index (0 to GetNumGlyphs() - 1) you're interested in.
pWhereOUT If not nil, receives the XY location of the glyph.
pIsValidOUT If not nil, recieves a boolean indicating whether this is a defined glyphID. (Note that this returns kFalse if the glyph is the font's not-defined glyph.)
Returns
The glyph ID.
virtual uint32 IPreflightArtworkTextInfo::GetNumGlyphs () const
pure virtual
Get the number of glyphs for a text marking operation.

Returns
Number of glyphs.
virtual PMMatrix IPreflightArtworkTextInfo::GetTextMatrix () const
pure virtual

Get the text matrix for a text marking operation. This is a matrix that is applied at this marking operation's level to the text itself. This can be combined with GetAbsoluteMatrix from the marking operation to determine the overall matrix.

Returns
The text matrix.