Character

struct Character : ExpressibleByExtendedGraphemeClusterLiteral, Hashable
  • U+1FFF is merely one of the many unicode characters not yet implemented (or defined). It thus prints a ῿ question mark, as do all the unavailable characters. All unavailable unicode characters share the same question mark [?] bitmap

    Declaration

    Swift

    public static let refUnicodePng = Character("\u{1f975}").png(ofSize: Character.refUnicodeSize) // Future Emoji (unsupported)
  • Tests against the existence of a given unicode glyph on the present OS

    Declaration

    Swift

    public var unicodeSupported : Bool

    Return Value

    true if this unicode (including emoji) will return a meaningful representation (i.e, not a ῿)

  • Creates a png from a Character

    Declaration

    Swift

    func png(ofSize fontSize: CGFloat) -> Data?

    Parameters

    char

    a Character. Note: Only render first code point to prevent

    Return Value

    a Portable Network Graphic (png), as Data optional

  • Returns true if the character is an emoji

    Declaration

    Swift

    public var isEmoji : Bool
  • Undocumented

    Declaration

    Swift

    public var emojiDescription : String?