Clearer function names, thanks to Abdel.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31762 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-10-27 12:13:34 +00:00
parent 7a9e5d2284
commit e4096caf26

View File

@ -333,7 +333,7 @@ namespace {
}
string getFamily(FontFamily const & f)
string getFamilyCSS(FontFamily const & f)
{
switch (f) {
case ROMAN_FAMILY: return "serif";
@ -346,7 +346,7 @@ namespace {
}
string getSeries(FontSeries const & s)
string getSeriesCSS(FontSeries const & s)
{
switch (s) {
case MEDIUM_SERIES: return "normal";
@ -358,7 +358,7 @@ namespace {
}
string getShape(FontShape const & s)
string getShapeCSS(FontShape const & s)
{
string fs = "normal";
string fv = "normal";
@ -379,7 +379,7 @@ namespace {
}
string getSize(FontSize const & s)
string getSizeCSS(FontSize const & s)
{
switch (s) {
case FONT_SIZE_TINY: return "xx-small";
@ -408,14 +408,14 @@ namespace {
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);