(#266) Use application font for performance

This commit is contained in:
Magne Sjaastad 2015-11-17 17:00:12 +01:00
parent 3c1b549064
commit cf38d1e6fe

View File

@ -20,6 +20,8 @@
#include "RivGridBoxGenerator.h" #include "RivGridBoxGenerator.h"
#include "RiaApplication.h"
#include "RivPatchGenerator.h" #include "RivPatchGenerator.h"
#include "cafEffectGenerator.h" #include "cafEffectGenerator.h"
@ -540,7 +542,10 @@ void RivGridBoxGenerator::createLegend(EdgeType edge, cvf::Collection<cvf::Part>
// Text labels // Text labels
cvf::ref<cvf::DrawableText> geo = new cvf::DrawableText; cvf::ref<cvf::DrawableText> geo = new cvf::DrawableText;
geo->setFont(new cvf::FixedAtlasFont(cvf::FixedAtlasFont::STANDARD));
cvf::Font* standardFont = RiaApplication::instance()->standardFont();
geo->setFont(standardFont);
geo->setTextColor(m_gridLegendColor); geo->setTextColor(m_gridLegendColor);
geo->setCheckPosVisible(false); geo->setCheckPosVisible(false);
geo->setDrawBackground(false); geo->setDrawBackground(false);