glyphInfoWithGlyphName static method

NSGlyphInfo? glyphInfoWithGlyphName(
  1. NSString glyphName, {
  2. required NSFont forFont,
  3. required NSString baseString,
})

glyphInfoWithGlyphName:forFont:baseString:

Implementation

static NSGlyphInfo? glyphInfoWithGlyphName(
  objc.NSString glyphName, {
  required NSFont forFont,
  required objc.NSString baseString,
}) {
  final _ret = _objc_msgSend_11spmsz(
    _class_NSGlyphInfo,
    _sel_glyphInfoWithGlyphName_forFont_baseString_,
    glyphName.ref.pointer,
    forFont.ref.pointer,
    baseString.ref.pointer,
  );
  return _ret.address == 0
      ? null
      : NSGlyphInfo.castFromPointer(_ret, retain: true, release: true);
}