TF-1878 Fix font family not changed correctly in composer

(cherry picked from commit a4c72a79abf429aa2938c8218308f1ac16f89d76)
This commit is contained in:
dab246
2023-06-16 12:45:26 +07:00
committed by Dat H. Pham
parent f589b11637
commit 68145165be
3 changed files with 73 additions and 14 deletions
@@ -15,7 +15,7 @@ enum FontNameType {
sansSerif,
verdana;
String get fontFamily {
String get title {
switch(this) {
case FontNameType.arial:
return 'Arial';
@@ -47,4 +47,37 @@ enum FontNameType {
return 'Verdana';
}
}
String get value {
switch(this) {
case FontNameType.arial:
return 'Arial';
case FontNameType.arialBlack:
return 'Arial Black';
case FontNameType.brushScriptMT:
return 'Brush Script MT';
case FontNameType.comicSansMS:
return 'Comic Sans MS';
case FontNameType.courierNew:
return 'Courier New';
case FontNameType.helveticaNeue:
return 'Helvetica Neue';
case FontNameType.helvetica:
return 'Helvetica';
case FontNameType.impact:
return 'Impact';
case FontNameType.lucidaGrande:
return 'Lucida Grande';
case FontNameType.tahoma:
return 'Tahoma';
case FontNameType.timesNewRoman:
return 'Times New Roman';
case FontNameType.trebuchetMS:
return 'Trebuchet MS';
case FontNameType.sansSerif:
return 'sans-serif';
case FontNameType.verdana:
return 'Verdana';
}
}
}