# `GSGlyph addUnicodeScalar(_:)`

*Instance Method*

Adds a Unicode scalar while preserving the existing assignments.

## Declaration

```swift
func addUnicodeScalar(_ unicodeScalar: Unicode.Scalar)
```

## See Also

### Unicode and Characters

- [`GSGlyph.unicodes`](/Core/GlyphsCore/GSGlyph/unicodes) — The Unicode code points associated with the glyph, as an ordered set of uppercase hexadecimal strings.
- [`GSGlyph.unicodeScalars`](/Core/GlyphsCore/GSGlyph/unicodeScalars) — The Unicode scalars associated with the glyph in their assignment order.
- [`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.primaryUnicodeScalar`](/Core/GlyphsCore/GSGlyph/primaryUnicodeScalar) — The first associated Unicode value as a scalar, or `nil` when it is missing or invalid.
- [`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 removeUnicodeScalar(_:)`](/Core/GlyphsCore/GSGlyph/removeUnicodeScalar(_:)) — Removes a Unicode scalar while preserving the order of the remaining assignments.
- [`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.

