From 1af2b657140ba151e9cd73ee3e65277b56db7b53 Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Tue, 3 Feb 2015 22:21:32 -0800 Subject: [PATCH] Fixing scaling to lineHeight --- libraries/entities-renderer/src/RenderableTextEntityItem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/entities-renderer/src/RenderableTextEntityItem.cpp b/libraries/entities-renderer/src/RenderableTextEntityItem.cpp index 6a97a1c6be..e8a2795129 100644 --- a/libraries/entities-renderer/src/RenderableTextEntityItem.cpp +++ b/libraries/entities-renderer/src/RenderableTextEntityItem.cpp @@ -63,8 +63,8 @@ void RenderableTextEntityItem::render(RenderArgs* args) { glTranslatef(-(halfDimensions.x - leftMargin), halfDimensions.y - topMargin, 0.0f); glm::vec4 textColor(toGlm(getTextColorX()), alpha); // this is a ratio determined through experimentation - static const float testScaleFactor = 0.01f; - glScalef(testScaleFactor, -testScaleFactor, testScaleFactor); + const float scaleFactor = 0.1f * _lineHeight; + glScalef(scaleFactor, -scaleFactor, scaleFactor); textRenderer->draw(0, 0, _text, textColor); } glPopMatrix();