loadFont method

  1. @protected
  2. @visibleForTesting
Future<void> loadFont (Uint8List list, String family)
@protected, @visibleForTesting

Hook called to load a font asset into the engine.

Subclasses may override this to replace the default loading logic with custom logic (for example, to mock the underlying engine API in tests).

Implementation

@protected
@visibleForTesting
Future<void> loadFont(Uint8List list, String family) {
  return loadFontFromList(list, fontFamily: family);
}