}
- string getFamily(FontFamily const & f)
+ string getFamilyCSS(FontFamily const & f)
{
switch (f) {
case ROMAN_FAMILY: return "serif";
}
- string getSeries(FontSeries const & s)
+ string getSeriesCSS(FontSeries const & s)
{
switch (s) {
case MEDIUM_SERIES: return "normal";
}
- string getShape(FontShape const & s)
+ string getShapeCSS(FontShape const & s)
{
string fs = "normal";
string fv = "normal";
}
- string getSize(FontSize const & s)
+ string getSizeCSS(FontSize const & s)
{
switch (s) {
case FONT_SIZE_TINY: return "xx-small";
docstring FontInfo::asCSS() const
{
string retval;
- string tmp = getFamily(family_);
+ string tmp = getFamilyCSS(family_);
if (!tmp.empty())
appendSep(retval, makeCSSTag("font-family", tmp));
- tmp = getSeries(series_);
+ tmp = getSeriesCSS(series_);
if (!tmp.empty())
appendSep(retval, makeCSSTag("font-series", tmp));
- appendSep(retval, getShape(shape_));
- tmp = getSize(size_);
+ appendSep(retval, getShapeCSS(shape_));
+ tmp = getSizeCSS(size_);
if (!tmp.empty())
appendSep(retval, makeCSSTag("font-size", tmp));
return from_ascii(retval);