TF-1878 Fix font family not changed correctly in composer
(cherry picked from commit a4c72a79abf429aa2938c8218308f1ac16f89d76)
This commit is contained in:
@@ -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';
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user