SetFontDetails constructor

SetFontDetails({
  1. ScriptCode? script,
  2. required GenericFamily genericFamily,
  3. required String fontId,
})

Implementation

SetFontDetails({
  /// The script code which the font should be set. If omitted, the font
  /// setting for the global script (script code "Zyyy") is set.
  ScriptCode? script,

  /// The generic font family for which the font should be set.
  required GenericFamily genericFamily,

  /// The font ID. The empty string means to fallback to the global script
  /// font setting.
  required String fontId,
}) : _wrapped = $js.SetFontDetails(
        script: script?.toJS,
        genericFamily: genericFamily.toJS,
        fontId: fontId,
      );