LoadFontEx method

  1. @override
FontD LoadFontEx(
  1. String fileName,
  2. num fontSize, [
  3. Int32List? codepoints,
  4. num? codePointCount,
])
override

Implementation

@override
FontD LoadFontEx(
  String fileName,
  num fontSize, [
    Int32List? codepoints,
    num? codePointCount
  ]
) => run(
  () => RaylibDebugLabels.LoadFontEx(fileName, fontSize, codepoints),
  () => rl.Temp.Font$.RefCapture(
    RaylibCaptureIds.LoadFontEx(fileName, fontSize, codepoints),
    (_) => rl.Core.LoadFontEx(
      rl.Temp.String$.ValueOrNull(fileName),
      fontSize.toInt(),
      codepoints == null ? nullptr : rl.Temp.Int$.Array(codepoints),
      codePointCount?.toInt() ?? codepoints?.length ?? 0,
    ),
  ),
);