GSGlyphsInfo Class Reference
| Inherits from | NSObject |
Tasks
-
glyphGroupsTreeproperty -
glyphInfosproperty -
widthClassesproperty -
weightClassesproperty -
+ sharedManager -
– glyphInfoForGlyph: -
– glyphInfoForName: -
– glyphInfoForUnicode: -
– glyphIndex: -
– lowerCaseName: -
– updateGlyphInfo:changeName: -
– updateAnchor: -
– niceGlyphNameForName: -
– productionGlyphNameForName: -
– convertToLegecyNames:font:
Properties
glyphGroupsTree
An array of glyph groups.
@property (readonly, nonatomic) NSArray *glyphGroupsTreeDiscussion
This is used the build the filter tree in font view mode.
Instance Methods
convertToLegecyNames:font:
Converts all glyph names to production names
- (NSString *)convertToLegecyNames:(NSString *)string font:(GSFont *)fontParameters
- string
A string that contains glyph names like feature code.
Return Value
The string with converted names.
Discussion
This is useful for OT-feature code
glyphIndex:
Returns the index of the glyph in the database.
- (NSUInteger)glyphIndex:(GSGlyph *)GlyphglyphInfoForGlyph:
Returns the GSGlyphInfo for the glyph with Glyph.
- (GSGlyphInfo *)glyphInfoForGlyph:(GSGlyph *)GlyphParameters
- Glyph
The glyph.
Return Value
A GSGlyphInfo instance or nil.
glyphInfoForName:
Returns the GSGlyphInfo for the glyph with Name.
- (GSGlyphInfo *)glyphInfoForName:(NSString *)NameParameters
- Name
The glyph name.
Return Value
A GSGlyphInfo instance or nil.
glyphInfoForUnicode:
Returns the GSGlyphInfo for the glyph with Unicode.
- (GSGlyphInfo *)glyphInfoForUnicode:(NSString *)UnicodeParameters
- Unicode
A unicode as Hex string.
Return Value
A GSGlyphInfo instance or nil.
lowerCaseName:
returns the name of the lowercase glyph name linked to the given uppercase name
- (NSString *)lowerCaseName:(NSString *)NameParameters
- Name
a upper case glyph name
Return Value
the matching lower case name
Discussion
in most instances this is equivalent with [Name lowercaseString] but there are some exceptions. e.g. A > a, KoppaArchaic > koppaArchaic
niceGlyphNameForName:
Converts a name to a standardised name
- (NSString *)niceGlyphNameForName:(NSString *)nameParameters
- name
The name.
Return Value
The nice-name.
Discussion
e.g. converts afii10017 to A-cy
See Also
productionGlyphNameForName:
Converts a name to a production name
- (NSString *)productionGlyphNameForName:(NSString *)nameParameters
- name
The name.
Return Value
The production name.