getFont method

Font getFont(
  1. BanglaFontType type
)

Get a font synchronously (must call initialize() before using)

Implementation

pw.Font getFont(BanglaFontType type) {
  final font = _fontCache[type];
  if (font == null) {
    throw Exception(
        'Font $type not loaded! Call await BanglaFontManager().initialize() before using.');
  }
  return font;
}