InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
GlyphEntry Class Reference

#include <IGlyphUtils.h>

Public Types

typedef base_type data_type
 

Public Member Functions

 GlyphEntry (Text::GlyphID id=0)
 
Text::GlyphID GetGlyphID () const
 
void SetGlyphID (const Text::GlyphID glyphID)
 
UTF32TextChar GetUnicodeGlyphID (IPMFont *font) const
 
bool16 GetOTFFeatureUnicodeCombo (IPMFont *font, GlyphAccessData &glyphAccessData) const
 

Protected Attributes

Text::GlyphID fGlyphID
 
UTF32TextChar fCachedUnicodeGlyphID
 

Detailed Description

Member Function Documentation

Text::GlyphID GlyphEntry::GetGlyphID () const
inline

Get the glyph id

Returns
Text::GlyphID glyph id
bool16 GlyphEntry::GetOTFFeatureUnicodeCombo (IPMFontfont,
GlyphAccessDataglyphAccessData 
) const

Sets glyphAccessData->fDesiredTag to global gDesiredTag. Calls IPMFont::GetOTGlyphAccess. External code should not use this and call IPMFont::GetOTGlyphAccess instead.

Parameters
fontfont glyph id is in
glyphAccessDataaccess data
Returns
bool16 kTrue if success and glyphAccessData has a feature and access textchars has a length.
UTF32TextChar GlyphEntry::GetUnicodeGlyphID (IPMFontfont) const

Gets a unicode character value for a glyph id. Caches its value.

Parameters
fontfont glyphid is from
Returns
unicode character value. May return 0.
See Also
GetUnicodeForGlyphID in IGlyphUtils.h
void GlyphEntry::SetGlyphID (const Text::GlyphID glyphID)
inline

Set the glyph id

Parameters
glyphIDglyph id