LoadFontFromMemory method
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,
),
),
);