Exemplo n.º 1
0
//==============================================================================
String Font::toString() const
{
    String s;

    if (getTypefaceName() != getDefaultSansSerifFontName())
        s << getTypefaceName() << "; ";

    s << String (getHeight(), 1);

    if (getTypefaceStyle() != getDefaultStyle())
        s << ' ' << getTypefaceStyle();

    return s;
}
Exemplo n.º 2
0
//==============================================================================
String Font::toString() const
{
    String s (getTypefaceFamily());
    s += "; " + getTypefaceStyle() + "; ";
    s += String (getHeight(), 1);

    return s;
}