From 36d557ff2a2290ca3f3a66a504852328e6dc32a2 Mon Sep 17 00:00:00 2001
From: Jacek Antonelli
Date: Thu, 21 Oct 2010 23:28:59 -0500
Subject: Fixed #629: Freeze Frame snapshot option breaks the UI.
---
linden/indra/newview/llfloatersnapshot.cpp | 1 -
1 file changed, 1 deletion(-)
diff --git a/linden/indra/newview/llfloatersnapshot.cpp b/linden/indra/newview/llfloatersnapshot.cpp
index c0e972d..a58120d 100644
--- a/linden/indra/newview/llfloatersnapshot.cpp
+++ b/linden/indra/newview/llfloatersnapshot.cpp
@@ -2128,7 +2128,6 @@ BOOL LLFloaterSnapshot::postBuild()
//gSnapshotFloaterView->addChild(this);
impl.updateControls(this);
- impl.updateLayout(this);
return TRUE;
}
--
cgit v1.1
From b41717bc60cf72aef2257c6573201bd74210c428 Mon Sep 17 00:00:00 2001
From: Jacek Antonelli
Date: Fri, 22 Oct 2010 17:20:34 -0500
Subject: Added FontSizeMultiplier and FontSizeRounding settings.
Gives more control over font sizes, addresses font being smaller
than some users desire.
---
linden/indra/llrender/llfontregistry.cpp | 10 +++++++++-
linden/indra/newview/app_settings/settings.xml | 22 ++++++++++++++++++++++
2 files changed, 31 insertions(+), 1 deletion(-)
diff --git a/linden/indra/llrender/llfontregistry.cpp b/linden/indra/llrender/llfontregistry.cpp
index 9792a91..c5923cd 100644
--- a/linden/indra/llrender/llfontregistry.cpp
+++ b/linden/indra/llrender/llfontregistry.cpp
@@ -442,7 +442,15 @@ LLFontGL *LLFontRegistry::createFont(const LLFontDescriptor& desc)
std::string font_path = local_path + *file_name_it;
BOOL is_fallback = !is_first_found;
F32 size_mult = (is_fallback ? 1 : match_desc->getSizeMult());
- F32 size = (F32)llround(point_size * size_mult);
+ if (gSavedSettings.getF32("FontSizeMultiplier") > 0)
+ {
+ size_mult *= gSavedSettings.getF32("FontSizeMultiplier");
+ }
+ F32 size = (F32)(point_size * size_mult);
+ if (gSavedSettings.getBOOL("FontSizeRounding"))
+ {
+ size = (F32)llround(size);
+ }
if (!fontp->loadFace(font_path, size,
LLFontGL::sVertDPI, LLFontGL::sHorizDPI, 2, is_fallback))
{
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml
index 8c280d4..7b37bb6 100644
--- a/linden/indra/newview/app_settings/settings.xml
+++ b/linden/indra/newview/app_settings/settings.xml
@@ -396,6 +396,28 @@
Value
DroidSans
+ FontSizeMultiplier
+
+ FontSizeRounding
+
GoAction