LoadFontFromMemory method

FontD LoadFontFromMemory(
  1. String fileType,
  2. List<int> fileData,
  3. num fontSize,
  4. List<int> codepoints,
)

Implementation

FontD LoadFontFromMemory(
  String fileType,
  List<int> fileData,
  num fontSize,
  List<int> codepoints,
) => run(
  () => 'LoadFontFromMemory($fileType, fileData: ${fileData.length}, $fontSize, codepoints: ${codepoints.length})',
  () => rl.Temp.Font$.RefCapture(
    'LoadFontFromMemory_${fileType}_${fileData.length}_${fontSize}_${codepoints.length}',
    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,
    ),
  ),
);