<!--
{
  "availability" : [
    "iOS: 3.2.0 -",
    "iPadOS: 3.2.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreText",
  "identifier" : "/documentation/CoreText/CTGlyphInfoCreateWithGlyph(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Text"
    ],
    "preciseIdentifier" : "c:@F@CTGlyphInfoCreateWithGlyph"
  },
  "title" : "CTGlyphInfoCreateWithGlyph(_:_:_:)"
}
-->

# CTGlyphInfoCreateWithGlyph(_:_:_:)

Creates an immutable glyph info object with a glyph index.

```
func CTGlyphInfoCreateWithGlyph(_ glyph: CGGlyph, _ font: CTFont, _ baseString: CFString) -> CTGlyphInfo?
```

## Parameters

`glyph`

The index of the glyph.

`font`

The font to be associated with the returned CTGlyphInfo object.

`baseString`

The part of the string the returned object is intended to override.

## Return Value

A valid reference to an immutable CTGlyphInfo object, If glyph info creation was successful; otherwise, `NULL`.

## Discussion

This function creates an immutable glyph info object for a glyph index using a specified font.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)