- string getShapeCSS(FontShape const & s)
- {
- string fs = "normal";
- string fv = "normal";
- switch (s) {
- case UP_SHAPE: break;
- case ITALIC_SHAPE: fs = "italic"; break;
- case SLANTED_SHAPE: fs = "oblique"; break;
- case SMALLCAPS_SHAPE: fv = "small-caps"; break;
- case IGNORE_SHAPE:
- case INHERIT_SHAPE:
- fs = ""; fv = ""; break;
- }
- string retval;
- if (!fs.empty())
- appendSep(retval, makeCSSTag("font-style", fs));
- if (!fv.empty())
- appendSep(retval, makeCSSTag("font-variant", fv));
- return retval;
+string getShapeCSS(FontShape const & s)
+{
+ string fs = "normal";
+ string fv = "normal";
+ switch (s) {
+ case UP_SHAPE: break;
+ case ITALIC_SHAPE: fs = "italic"; break;
+ case SLANTED_SHAPE: fs = "oblique"; break;
+ case SMALLCAPS_SHAPE: fv = "small-caps"; break;
+ case IGNORE_SHAPE:
+ case INHERIT_SHAPE:
+ fs = ""; fv = ""; break;