# `GSGlyph.unicodes`

*Instance Property*

The Unicode code points associated with the glyph, as an ordered set of uppercase hexadecimal strings.

## Declaration

```swift
var unicodes: NSOrderedSet? { get set }
```

```objc
@property (nonatomic, strong) NSOrderedSet * unicodes;
```

[See also `unicodes` in the Python API](https://docu.glyphsapp.com/#GSGlyph.unicodes)

```python
pyobjc_instanceMethods.unicodes() -> NSOrderedSet
pyobjc_instanceMethods.setUnicodes_(unicodes: NSOrderedSet)
```

## Discussion

Most glyphs have zero or one Unicode code point, but a glyph can have several. The first value is the primary Unicode code point used by singular convenience properties such as [`GSGlyph.unicode`](/Core/GlyphsCore/GSGlyph/unicode) and [`GSGlyph.unicodeChar`](/Core/GlyphsCore/GSGlyph/unicodeChar). Glyph information can assign Unicode code points when the glyph name changes. Use this property or the Unicode mutation methods instead of modifying the returned set directly.

## See Also

### Unicode and Characters

- [`GSGlyph countOfUnicodes`](/Core/GlyphsCore/GSGlyph/countOfUnicodes) — The number of associated Unicode code points.
- [`GSGlyph.unicode`](/Core/GlyphsCore/GSGlyph/unicode) — The first Unicode code point associated with the glyph, as an uppercase hexadecimal string.
- [`GSGlyph.unicodeChar`](/Core/GlyphsCore/GSGlyph/unicodeChar) — The numeric value of the first associated Unicode code point, or `0` when there is none.
- [`GSGlyph charString`](/Core/GlyphsCore/GSGlyph/charString) — The character for the first associated Unicode code point, or an empty string when this convenience API cannot represent it.
- [`GSGlyph addUnicode:`](/Core/GlyphsCore/GSGlyph/addUnicode:) — Adds a Unicode code point while preserving the existing code points.
- [`GSGlyph removeUnicode:`](/Core/GlyphsCore/GSGlyph/removeUnicode:) — Removes a Unicode code point while preserving the order of the remaining code points.
- [`GSGlyph setUnicodesFast:`](/Core/GlyphsCore/GSGlyph/setUnicodesFast:) — Assigns Unicode code points without updating related state.
- [`GSGlyph isValidUnicodeString:error:`](/Core/GlyphsCore/GSGlyph/isValidUnicodeString:error:) — Checks whether a string uses the uppercase hexadecimal syntax for a Unicode code point.
- [`GSGlyph.baseString`](/Core/GlyphsCore/GSGlyph/baseString) — The Unicode string represented by the glyph’s character composition.

