Dart Documentationchrome.fontSettingsFontSettingsSetFontParams

FontSettingsSetFontParams class

class FontSettingsSetFontParams extends ChromeObject {
 FontSettingsSetFontParams({ScriptCode script, GenericFamily genericFamily, String fontId}) {
   if (script != null) this.script = script;
   if (genericFamily != null) this.genericFamily = genericFamily;
   if (fontId != null) this.fontId = fontId;
 }
 FontSettingsSetFontParams.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 /**
  * The script code which the font should be set. If omitted, the font setting
  * for the global script (script code "Zyyy") is set.
  */
 ScriptCode get script => _createScriptCode(jsProxy['script']);
 set script(ScriptCode value) => jsProxy['script'] = jsify(value);

 /**
  * The generic font family for which the font should be set.
  */
 GenericFamily get genericFamily => _createGenericFamily(jsProxy['genericFamily']);
 set genericFamily(GenericFamily value) => jsProxy['genericFamily'] = jsify(value);

 /**
  * The font ID. The empty string means to fallback to the global script font
  * setting.
  */
 String get fontId => jsProxy['fontId'];
 set fontId(String value) => jsProxy['fontId'] = value;
}

Extends

ChromeObject > FontSettingsSetFontParams

Constructors

new FontSettingsSetFontParams({ScriptCode script, GenericFamily genericFamily, String fontId}) #

Create a new instance of a ChromeObject, which creates and delegates to a JsObject proxy.

docs inherited from ChromeObject
FontSettingsSetFontParams({ScriptCode script, GenericFamily genericFamily, String fontId}) {
 if (script != null) this.script = script;
 if (genericFamily != null) this.genericFamily = genericFamily;
 if (fontId != null) this.fontId = fontId;
}

new FontSettingsSetFontParams.fromProxy(JsObject jsProxy) #

Create a new instance of a ChromeObject, which delegates to the given JsObject proxy.

docs inherited from ChromeObject
FontSettingsSetFontParams.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

Properties

String fontId #

The font ID. The empty string means to fallback to the global script font setting.

String get fontId => jsProxy['fontId'];
set fontId(String value) => jsProxy['fontId'] = value;

GenericFamily genericFamily #

The generic font family for which the font should be set.

GenericFamily get genericFamily => _createGenericFamily(jsProxy['genericFamily']);
set genericFamily(GenericFamily value) => jsProxy['genericFamily'] = jsify(value);

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

ScriptCode script #

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

ScriptCode get script => _createScriptCode(jsProxy['script']);
set script(ScriptCode value) => jsProxy['script'] = jsify(value);

Methods

JsObject toJs() #

inherited from ChromeObject
JsObject toJs() => jsProxy;

String toString() #

inherited from ChromeObject

Returns a string representation of this object.

docs inherited from Object
String toString() => jsProxy.toString();