mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Profile: use a 10px font when printing profile text
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									50e74f4565
								
							
						
					
					
						commit
						374f3d0de6
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -1196,6 +1196,9 @@ QGraphicsItemGroup *ProfileGraphicsView::plot_text(text_render_options_t *tro,co | |||
| 	QFont fnt(font()); | ||||
| 	QFontMetrics fm(fnt); | ||||
| 
 | ||||
| 	if (printMode) | ||||
| 		fnt.setPixelSize(10); | ||||
| 
 | ||||
| 	QPointF point(SCALEGC(pos.x(), pos.y())); // This is neded because of the SCALE macro.
 | ||||
| 	double dx = tro->hpos * (fm.width(text)); | ||||
| 	double dy = tro->vpos * (fm.height()); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue