Declaration

func character(for glyph: GSGlyph) -> UTF32Char

Declaration

- (UTF32Char) characterForGlyph:(GSGlyph *) glyph;

Declaration

characterForGlyph_(glyph: GSGlyph) -> UTF32Char

Discussion

Temporary characters are assigned from the supplementary private-use area and remain stable for the lifetime of the character cache. The glyph may be local or imported and must belong to a font.

See Also

Unicode & Characters

  • Returns the local or imported glyph associated with a Unicode scalar, or nil when no glyph matches.

  • Returns the local or imported glyph associated with a Unicode scalar, or nil when no glyph matches.

  • Returns the local or imported glyph associated with the first matching Unicode scalar, or nil when none match.

  • Returns a glyph from this font’s character cache associated with a Unicode scalar, or nil when no glyph matches.

  • Returns a glyph from this font’s character cache associated with the first matching Unicode scalar, or nil when none match.

  • Returns the local or imported glyph represented by a Unicode scalar or temporary display character, or nil when no glyph matches.

  • The lookup cache used to map Unicode strings and temporary display characters to glyphs.

  • Returns the cached local or imported glyph associated with a Unicode scalar, or nil when no glyph matches.

  • Returns the cached local or imported glyph represented by a Unicode scalar or temporary display character, or nil when no glyph matches.

  • Returns the cached local or imported glyph represented by a Unicode scalar or temporary display character, or nil when no glyph matches.

  • Prepares the character cache from the local and imported glyphs.

  • Converts display text containing slash-prefixed glyph names to a string of display characters.

See Also

Unicode & Characters