+ if #available(macOS 13, *) {
+ path.append(withCGGlyphs: glyph, count: glyphLength, in: font)
+ } else {
+ let nsGlyph = UnsafeMutablePointer<NSGlyph>.allocate(capacity: range.length)
+
+ (0..<range.length).forEach { nsGlyph[$0] = NSGlyph(glyph[$0]) }
+ path.appendGlyphs(nsGlyph, count: glyphLength, in: font)
+ }