FontConfig.google constructor

FontConfig.google({
  1. required String ltr,
  2. String? rtl,
})

Both LTR and RTL fonts loaded from Google Fonts.

If rtl is omitted, the same ltr font is used for both directions.

Implementation

factory FontConfig.google({
  required String ltr,
  String? rtl,
}) =>
    FontConfig._(
      ltr: _DirectionFont._(ltr, _FontSource.google),
      rtl: _DirectionFont._(rtl ?? ltr, _FontSource.google),
    );