From b281a2e408f148f4906ad3c774bb60865942c8a7 Mon Sep 17 00:00:00 2001 From: Paolo Cignoni cignoni Date: Fri, 9 Nov 2007 11:23:46 +0000 Subject: [PATCH] attempts to manage 4.3 issues with fonts and opengl --- src/meshlab/glarea.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/meshlab/glarea.cpp b/src/meshlab/glarea.cpp index bdf358f80..1e26f5b0b 100644 --- a/src/meshlab/glarea.cpp +++ b/src/meshlab/glarea.cpp @@ -24,6 +24,9 @@ History $Log$ +Revision 1.131 2007/11/09 11:23:46 cignoni +attempts to manage 4.3 issues with fonts and opengl + Revision 1.130 2007/11/05 22:38:55 cignoni Remove static map of cursors that caused the annoying deallocation bug under vs2005 @@ -528,8 +531,11 @@ void GLArea::paintGL() void GLArea::displayInfo() { + //qFont.setStyleStrategy(QFont::PreferQuality); + qFont.setStyleStrategy(QFont::NoAntialias); qFont.setFamily("Helvetica"); qFont.setPixelSize(12); + qFont.setWeight(1); glBlendFunc(GL_ONE,GL_SRC_ALPHA); cs.lColor.V(3) = 128; // set half alpha value @@ -602,7 +608,8 @@ void GLArea::displayHelp() float fontSpacingV = (curSiz.height()*.01f)+3; float hPosition = curSiz.width()*.1f; glColor(Color4b::White); - qFont.setBold(true);renderText(2+hPosition-(qFont.pointSize()*9),1.5*fontSpacingV,QString("MeshLab Quick Help"),qFont);qFont.setBold(false); + //qFont.setBold(true); + renderText(2+hPosition-(qFont.pointSize()*9),1.5*fontSpacingV,QString("MeshLab Quick Help"),qFont);qFont.setBold(false); renderText(2,3*fontSpacingV,QString("Drag:"),qFont); renderText(hPosition,3*fontSpacingV,QString("Rotate"),qFont); renderText(2,4.5*fontSpacingV,QString("Ctrl-Drag:"),qFont); renderText(hPosition,4.5*fontSpacingV,QString("Pan"),qFont); renderText(2,6*fontSpacingV,QString("Shift-Drag:"),qFont); renderText(hPosition,6*fontSpacingV,QString("Zoom"),qFont);