diff options
author | Jacek Antonelli | 2008-08-15 23:45:37 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:37 -0500 |
commit | 31ba05810c641f14e8ab5da8ad2aaf527779f6c1 (patch) | |
tree | c4b8d635dfb657fa4cfee7c285f8cadbf24afa90 /linden/indra/llrender/llfontgl.cpp | |
parent | Second Life viewer sources 1.19.1.1 (diff) | |
download | meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.zip meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.tar.gz meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.tar.bz2 meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.tar.xz |
Second Life viewer sources 1.19.1.2
Diffstat (limited to 'linden/indra/llrender/llfontgl.cpp')
-rw-r--r-- | linden/indra/llrender/llfontgl.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/linden/indra/llrender/llfontgl.cpp b/linden/indra/llrender/llfontgl.cpp index bb60b70..9298e8c 100644 --- a/linden/indra/llrender/llfontgl.cpp +++ b/linden/indra/llrender/llfontgl.cpp | |||
@@ -234,10 +234,10 @@ bool LLFontGL::loadFaceFallback(LLFontList *fontlistp, const LLString& fontname, | |||
234 | { | 234 | { |
235 | LLFont *fontp = new LLFont(); | 235 | LLFont *fontp = new LLFont(); |
236 | LLString font_path = local_path + *token_iter; | 236 | LLString font_path = local_path + *token_iter; |
237 | if (!fontp->loadFace(font_path.c_str(), point_size, sVertDPI, sHorizDPI, 2, TRUE)) | 237 | if (!fontp->loadFace(font_path, point_size, sVertDPI, sHorizDPI, 2, TRUE)) |
238 | { | 238 | { |
239 | font_path = sys_path + *token_iter; | 239 | font_path = sys_path + *token_iter; |
240 | if (!fontp->loadFace(font_path.c_str(), point_size, sVertDPI, sHorizDPI, 2, TRUE)) | 240 | if (!fontp->loadFace(font_path, point_size, sVertDPI, sHorizDPI, 2, TRUE)) |
241 | { | 241 | { |
242 | llwarns << "Couldn't load font " << *token_iter << llendl; | 242 | llwarns << "Couldn't load font " << *token_iter << llendl; |
243 | delete fontp; | 243 | delete fontp; |
@@ -260,11 +260,11 @@ bool LLFontGL::loadFace(LLFontGL *fontp, const LLString& fontname, const F32 poi | |||
260 | { | 260 | { |
261 | LLString local_path = getFontPathLocal(); | 261 | LLString local_path = getFontPathLocal(); |
262 | LLString font_path = local_path + fontname; | 262 | LLString font_path = local_path + fontname; |
263 | if (!fontp->loadFace(font_path.c_str(), point_size, sVertDPI, sHorizDPI)) | 263 | if (!fontp->loadFace(font_path, point_size, sVertDPI, sHorizDPI, 2, FALSE)) |
264 | { | 264 | { |
265 | LLString sys_path = getFontPathSystem(); | 265 | LLString sys_path = getFontPathSystem(); |
266 | font_path = sys_path + fontname; | 266 | font_path = sys_path + fontname; |
267 | if (!fontp->loadFace(font_path.c_str(), point_size, sVertDPI, sHorizDPI)) | 267 | if (!fontp->loadFace(font_path, point_size, sVertDPI, sHorizDPI, 2, FALSE)) |
268 | { | 268 | { |
269 | llwarns << "Couldn't load font " << fontname << llendl; | 269 | llwarns << "Couldn't load font " << fontname << llendl; |
270 | return false; | 270 | return false; |
@@ -505,9 +505,11 @@ LLFontGL &LLFontGL::operator=(const LLFontGL &source) | |||
505 | return *this; | 505 | return *this; |
506 | } | 506 | } |
507 | 507 | ||
508 | BOOL LLFontGL::loadFace(const LLString& filename, const F32 point_size, const F32 vert_dpi, const F32 horz_dpi) | 508 | BOOL LLFontGL::loadFace(const std::string& filename, |
509 | const F32 point_size, const F32 vert_dpi, const F32 horz_dpi, | ||
510 | const S32 components, BOOL is_fallback) | ||
509 | { | 511 | { |
510 | if (!LLFont::loadFace(filename, point_size, vert_dpi, horz_dpi, 2, FALSE)) | 512 | if (!LLFont::loadFace(filename, point_size, vert_dpi, horz_dpi, components, is_fallback)) |
511 | { | 513 | { |
512 | return FALSE; | 514 | return FALSE; |
513 | } | 515 | } |