LoadFontEx method

FontD LoadFontEx(
  1. String fileName,
  2. num fontSize, [
  3. List<int>? codepoints,
  4. num? codePointCount,
])

Implementation

FontD LoadFontEx(
  String fileName,
  num fontSize, [
    List<int>? codepoints,
    num? codePointCount
  ]
) => run(
  () => 'LoadFontEx($fileName, $fontSize, codepoints: ${codepoints?.length})',
  () => _refCaptureFont(
    'LoadFontEx_${fileName}_$fontSize',
    rl.Core.LoadFontEx(
      refStr(fileName),
      fontSize.toInt(),
      codepoints == null ? nullptr : refListInt(codepoints),
      codePointCount?.toInt() ?? codepoints?.length ?? 0,
    ),
  ),
);