LoadFontFromMemory method

  1. @override
FontD LoadFontFromMemory(
  1. String fileType,
  2. Uint8List fileData,
  3. num fontSize,
  4. Int32List codepoints,
)
override

Implementation

@override
FontD LoadFontFromMemory(
  String fileType,
  Uint8List fileData,
  num fontSize,
  Int32List codepoints,
) => run(
  () => RaylibDebugLabels.LoadFontFromMemory(fileType, fileData, fontSize, codepoints),
  () => rl.Temp.Font$.RefCapture(
    RaylibCaptureIds.LoadFontFromMemory(fileType, fileData, fontSize, codepoints),
    (_) => rl.Core.LoadFontFromMemory(
      rl.Temp.String$.ValueOrNull(fileType),
      rl.Temp.Uint8$.Array(fileData).cast(),
      fileData.length,
      fontSize.toInt(),
      rl.Temp.Int$.Array(codepoints),
      codepoints.length,
    ),
  ),
);