setFont method

Future<void> setFont(
  1. SetFontDetails details
)

Sets the font for a given script and generic font family.

Implementation

Future<void> setFont(SetFontDetails details) async {
  await promiseToFuture<void>($js.chrome.fontSettings.setFont(details.toJS));
}