getFont method

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

Implementation

Future<GetFontCallbackDetails> getFont(GetFontDetails details) async {
  var $res = await promiseToFuture<$js.GetFontCallbackDetails>(
      $js.chrome.fontSettings.getFont(details.toJS));
  return GetFontCallbackDetails.fromJS($res);
}