expressionToFontStyle static method
Implementation
static FontStyle expressionToFontStyle(css.Expression value) {
if (value is css.LiteralTerm) {
switch(value.text) {
case "italic":
case "oblique":
return FontStyle.italic;
}
return FontStyle.normal;
}
return FontStyle.normal;
}