diff options
| author | richard <none@none> | 2009-12-15 19:38:22 -0800 |
|---|---|---|
| committer | richard <none@none> | 2009-12-15 19:38:22 -0800 |
| commit | 943cae62dbe41472b4515edbfca8a12e83dd6936 (patch) | |
| tree | d03d24affc67ad672853cd98752df83e9506a85d /indra/llrender/llfontgl.cpp | |
| parent | 17d1d3c129c25dd27ddbf2d15ab8873a61c16658 (diff) | |
| parent | 3a02b9ec882c98009ae6c24913ee8a7a620b0f87 (diff) | |
merge
Diffstat (limited to 'indra/llrender/llfontgl.cpp')
| -rw-r--r-- | indra/llrender/llfontgl.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/indra/llrender/llfontgl.cpp b/indra/llrender/llfontgl.cpp index db1f019a81..7ad5f9608f 100644 --- a/indra/llrender/llfontgl.cpp +++ b/indra/llrender/llfontgl.cpp @@ -761,6 +761,29 @@ U8 LLFontGL::getStyleFromString(const std::string &style) } // static +std::string LLFontGL::getStringFromStyle(U8 style) +{ + std::string style_string; + if (style & NORMAL) + { + style_string += "|NORMAL"; + } + if (style & BOLD) + { + style_string += "|BOLD"; + } + if (style & ITALIC) + { + style_string += "|ITALIC"; + } + if (style & UNDERLINE) + { + style_string += "|UNDERLINE"; + } + return style_string; +} + +// static std::string LLFontGL::nameFromFont(const LLFontGL* fontp) { return fontp->mFontDescriptor.getName(); |
