@@ -118,9 +118,12 @@ void TestQgsComposerMap::grid()
118
118
mComposerMap ->setGridEnabled ( true );
119
119
mComposerMap ->setGridIntervalX ( 2000 );
120
120
mComposerMap ->setGridIntervalY ( 2000 );
121
- mComposerMap ->setShowGridAnnotation ( true );
121
+ // Anotation is disabled because fonts are different on each platform
122
+ // TODO: ship a test font with QGIS and use it here
123
+ // mComposerMap->setShowGridAnnotation( true );
122
124
mComposerMap ->setGridPenWidth ( 0.5 );
123
125
mComposerMap ->setGridPenColor ( QColor ( 0 , 255 , 0 ) );
126
+ /*
124
127
mComposerMap->setGridAnnotationPrecision( 0 );
125
128
mComposerMap->setGridAnnotationPosition( QgsComposerMap::Disabled, QgsComposerMap::Left );
126
129
mComposerMap->setGridAnnotationPosition( QgsComposerMap::OutsideMapFrame, QgsComposerMap::Right );
@@ -129,6 +132,7 @@ void TestQgsComposerMap::grid()
129
132
mComposerMap->setGridAnnotationDirection( QgsComposerMap::Horizontal, QgsComposerMap::Right );
130
133
mComposerMap->setGridAnnotationDirection( QgsComposerMap::Horizontal, QgsComposerMap::Bottom );
131
134
mComposerMap->setAnnotationFontColor( QColor( 255, 0, 0, 150 ) );
135
+ */
132
136
mComposerMap ->setGridBlendMode ( QPainter::CompositionMode_Overlay );
133
137
qWarning () << " grid annotation font: " << mComposerMap ->gridAnnotationFont ().toString () << " exactMatch:" << mComposerMap ->gridAnnotationFont ().exactMatch ();
134
138
QgsCompositionChecker checker ( " composermap_grid" , mComposition );
0 commit comments