LoadFontFromImage method

  1. @override
FontD LoadFontFromImage(
  1. ImageD image,
  2. ColorD key,
  3. num firstChar
)
override

Implementation

@override
FontD LoadFontFromImage(
  ImageD image,
  ColorD key,
  num firstChar,
) => run(
  () => RaylibDebugLabels.LoadFontFromImage(image, key, firstChar),
  () => rl.Temp.Font$.RefCapture(
    RaylibCaptureIds.LoadFontFromImage(image, key, firstChar),
    (_) => rl.Core.LoadFontFromImage(
      rl.Temp.Image$.Ref1(image).ref,
      rl.Temp.Color$.Ref1(key).ref,
      firstChar.toInt(),
    ),
  ),
);