| Derived from | CFType |
| Framework | ApplicationServices/CoreText |
| Declared in | CTGlyphInfo.h |
The CTGlyphInfo opaque type enables you to override a font's specified mapping from Unicode to the glyph ID.
Creates an immutable glyph info object with a character identifier.
CTGlyphInfoRef CTGlyphInfoCreateWithCharacterIdentifier( CGFontIndex cid, CTCharacterCollection collection, CFStringRef baseString );
A character identifier.
A character collection identifier.
The part of the string the returned object is intended to override.
A valid reference to an immutable CTGlyphInfo object if glyph info creation was successful; otherwise, NULL.
This function creates an immutable glyph info object for a character identifier and a character collection.
CTGlyphInfo.hCreates an immutable glyph info object with a glyph index.
CTGlyphInfoRef CTGlyphInfoCreateWithGlyph( CGGlyph glyph, CTFontRef font, CFStringRef baseString );
The index of the glyph.
The font to be associated with the returned CTGlyphInfo object.
The part of the string the returned object is intended to override.
A valid reference to an immutable CTGlyphInfo object, If glyph info creation was successful; otherwise, NULL.
This function creates an immutable glyph info object for a glyph index using a specified font.
CTGlyphInfo.hCreates an immutable glyph info object with a glyph name.
CTGlyphInfoRef CTGlyphInfoCreateWithGlyphName( CFStringRef glyphName, CTFontRef font, CFStringRef baseString );
The name of the glyph.
The font to be associated with the returned CTGlyphInfo object.
The part of the string the returned object is intended to override.
A valid reference to an immutable CTGlyphInfo object if glyph info creation was successful; otherwise, NULL.
This function creates an immutable glyph info object for a glyph name such as copyright using a specified font.
CTGlyphInfo.hGets the character collection for a glyph info object.
CTCharacterCollection CTGlyphInfoGetCharacterCollection( CTGlyphInfoRef glyphInfo );
The glyph info from which to get the character collection. May not be NULL.
The character collection of the given glyph info object.
If the glyph info object was created with a glyph name or a glyph index, its character collection is kCTIdentityMappingCharacterCollection.
CTGlyphInfo.hGets the character identifier for a glyph info object.
CGFontIndex CTGlyphInfoGetCharacterIdentifier( CTGlyphInfoRef glyphInfo );
The glyph info from which to get the character identifier. May not be NULL.
The character identifier of the given glyph info object.
CTGlyphInfo.hGets the glyph name for a glyph info object if that object exists.
CFStringRef CTGlyphInfoGetGlyphName( CTGlyphInfoRef glyphInfo );
The glyph info from which to get the glyph name. May not be NULL.
A glyph name if the glyph info object was created; otherwise, NULL.
CTGlyphInfo.hReturns the Core Foundation type identifier of the glyph info object
CFTypeID CTGlyphInfoGetTypeID( void );
CTGlyphInfo.hA reference to a glyph info object.
typedef const struct __CTGlyphInfo *CTGlyphInfoRef;
CTGlyphInfo.hThese constants specify character collections.
enum{ kCTIdentityMappingCharacterCollection = 0,
kCTAdobeCNS1CharacterCollection = 1,
kCTAdobeGB1CharacterCollection = 2,
kCTAdobeJapan1CharacterCollection = 3,
kCTAdobeJapan2CharacterCollection = 4,
kCTAdobeKorea1CharacterCollection = 5};
typedef uint16_t CTCharacterCollection;
kCTIdentityMappingCharacterCollectionThe character identifier is equal to the CGGlyph glyph index.
Available in Mac OS X v10.5 and later.
Declared in CTGlyphInfo.h
kCTAdobeCNS1CharacterCollectionThe Adobe-CNS1 mapping.
Available in Mac OS X v10.5 and later.
Declared in CTGlyphInfo.h
kCTAdobeGB1CharacterCollectionThe Adobe-GB1 mapping.
Available in Mac OS X v10.5 and later.
Declared in CTGlyphInfo.h
kCTAdobeJapan1CharacterCollectionThe Adobe-Japan1 mapping.
Available in Mac OS X v10.5 and later.
Declared in CTGlyphInfo.h
kCTAdobeJapan2CharacterCollectionThe Adobe-Japan2 mapping.
Available in Mac OS X v10.5 and later.
Declared in CTGlyphInfo.h
kCTAdobeKorea1CharacterCollectionThe Adobe-Korea1 mapping.
Available in Mac OS X v10.5 and later.
Declared in CTGlyphInfo.h
CTGlyphInfo.h
Last updated: 2007-05-09