mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#266) Use application font for performance
This commit is contained in:
parent
3c1b549064
commit
cf38d1e6fe
@ -20,6 +20,8 @@
|
||||
|
||||
#include "RivGridBoxGenerator.h"
|
||||
|
||||
#include "RiaApplication.h"
|
||||
|
||||
#include "RivPatchGenerator.h"
|
||||
|
||||
#include "cafEffectGenerator.h"
|
||||
@ -540,7 +542,10 @@ void RivGridBoxGenerator::createLegend(EdgeType edge, cvf::Collection<cvf::Part>
|
||||
// Text labels
|
||||
|
||||
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->setCheckPosVisible(false);
|
||||
geo->setDrawBackground(false);
|
||||
|
Loading…
Reference in New Issue
Block a user