W3cubDocs

/Dart 2

FontFace constructor

FontFace(String family, Object source, [ Map descriptors ])

Implementation

factory FontFace(String family, Object source, [Map descriptors]) {
  if (descriptors != null) {
    var descriptors_1 = convertDartToNative_Dictionary(descriptors);
    return FontFace._create_1(family, source, descriptors_1);
  }
  return FontFace._create_2(family, source);
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-html/FontFace/FontFace.html