aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--linden/indra/llrender/llfontregistry.cpp10
-rw-r--r--linden/indra/newview/app_settings/settings.xml22
2 files changed, 31 insertions, 1 deletions
diff --git a/linden/indra/llrender/llfontregistry.cpp b/linden/indra/llrender/llfontregistry.cpp
index 2140dbd..28e38ce 100644
--- a/linden/indra/llrender/llfontregistry.cpp
+++ b/linden/indra/llrender/llfontregistry.cpp
@@ -442,7 +442,15 @@ LLFontGL *LLFontRegistry::createFont(const LLFontDescriptor& desc)
442 std::string font_path = local_path + *file_name_it; 442 std::string font_path = local_path + *file_name_it;
443 BOOL is_fallback = !is_first_found; 443 BOOL is_fallback = !is_first_found;
444 F32 size_mult = (is_fallback ? 1 : match_desc->getSizeMult()); 444 F32 size_mult = (is_fallback ? 1 : match_desc->getSizeMult());
445 F32 size = (F32)llround(point_size * size_mult); 445 if (gSavedSettings.getF32("FontSizeMultiplier") > 0)
446 {
447 size_mult *= gSavedSettings.getF32("FontSizeMultiplier");
448 }
449 F32 size = (F32)(point_size * size_mult);
450 if (gSavedSettings.getBOOL("FontSizeRounding"))
451 {
452 size = (F32)llround(size);
453 }
446 if (!fontp->loadFace(font_path, size, 454 if (!fontp->loadFace(font_path, size,
447 LLFontGL::sVertDPI, LLFontGL::sHorizDPI, 2, is_fallback)) 455 LLFontGL::sVertDPI, LLFontGL::sHorizDPI, 2, is_fallback))
448 { 456 {
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml
index 68b5ac6..a857b7a 100644
--- a/linden/indra/newview/app_settings/settings.xml
+++ b/linden/indra/newview/app_settings/settings.xml
@@ -266,6 +266,28 @@
266 <key>Value</key> 266 <key>Value</key>
267 <string>DroidSans</string> 267 <string>DroidSans</string>
268 </map> 268 </map>
269 <key>FontSizeMultiplier</key>
270 <map>
271 <key>Comment</key>
272 <string>Multiply all font sizes by this amount. Requires viewer restart.</string>
273 <key>Persist</key>
274 <integer>1</integer>
275 <key>Type</key>
276 <string>F32</string>
277 <key>Value</key>
278 <string>1.0</string>
279 </map>
280 <key>FontSizeRounding</key>
281 <map>
282 <key>Comment</key>
283 <string>Round all font sizes to integer values, to potentially reduce font blurriness. The rounding occurs after FontSizeMultiplier is applied. Requires viewer restart.</string>
284 <key>Persist</key>
285 <integer>1</integer>
286 <key>Type</key>
287 <string>Boolean</string>
288 <key>Value</key>
289 <integer>0</integer>
290 </map>
269 <key>GoAction</key> 291 <key>GoAction</key>
270 <map> 292 <map>
271 <key>Comment</key> 293 <key>Comment</key>