toFontScript method

FontScript toFontScript()

Implementation

FontScript toFontScript() {
  switch (this) {
    case 'AUTOMATIC':
      return FontScript.automatic;
    case 'HANS':
      return FontScript.hans;
    case 'HANT':
      return FontScript.hant;
  }
  throw Exception('$this is not known in enum FontScript');
}