summaryrefslogtreecommitdiff
path: root/indra/llrender
diff options
context:
space:
mode:
authorRichard Linden <none@none>2012-01-26 16:30:38 -0800
committerRichard Linden <none@none>2012-01-26 16:30:38 -0800
commitbbc265a9d5230603b7ee1b3f974ef27154d8507f (patch)
tree4d9bbacc2aa386912d8c56f9bf0852276b99214a /indra/llrender
parentce9ff40c64929cef8c8f422723ce631735774c9a (diff)
EXP-1846 FIX Text positioning issues in Floaters, Notifications, UI, and toasts with UI size smaller than 1
also, re-enabled floater_test_textbox.xml
Diffstat (limited to 'indra/llrender')
-rw-r--r--indra/llrender/llfontgl.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/indra/llrender/llfontgl.cpp b/indra/llrender/llfontgl.cpp
index 12f86cf599..a469581637 100644
--- a/indra/llrender/llfontgl.cpp
+++ b/indra/llrender/llfontgl.cpp
@@ -215,16 +215,17 @@ S32 LLFontGL::render(const LLWString &wstr, S32 begin_offset, F32 x, F32 y, cons
cur_y = ((F32)y * sScaleY) + origin.mV[VY];
// Offset y by vertical alignment.
+ // use unscaled font metrics here
switch (valign)
{
case TOP:
- cur_y -= getAscenderHeight();
+ cur_y -= mFontFreetype->getAscenderHeight();
break;
case BOTTOM:
- cur_y += getDescenderHeight();
+ cur_y += mFontFreetype->getDescenderHeight();
break;
case VCENTER:
- cur_y -= (getAscenderHeight() - getDescenderHeight()) / 2.f;
+ cur_y -= (mFontFreetype->getAscenderHeight() - mFontFreetype->getDescenderHeight()) / 2.f;
break;
case BASELINE:
// Baseline, do nothing.