diff options
| author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2025-09-20 19:19:34 +0200 | 
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2025-09-20 19:19:34 +0200 | 
| commit | e7d20cf352688bf717a01f4e6d9e6f497c2bea4c (patch) | |
| tree | cfd2ef9b569f49af985a6f1ec44f2614f63c8e78 /app/wlib/gtklib/print.c | |
| parent | a14a7a0ccc9de76aeab0b2e4bbf58f1a79deedc2 (diff) | |
New upstream version 5.3.1Beta2upstream/5.3.1Beta2
Diffstat (limited to 'app/wlib/gtklib/print.c')
| -rw-r--r-- | app/wlib/gtklib/print.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/app/wlib/gtklib/print.c b/app/wlib/gtklib/print.c index 609efa9..2c7c278 100644 --- a/app/wlib/gtklib/print.c +++ b/app/wlib/gtklib/print.c @@ -755,7 +755,7 @@ void psPrintString(  	/** \todo use a getter function instead of double conversion */  	desc = pango_font_description_from_string(wlibFontTranslate(fp)); -	pango_font_description_set_size(desc, fs * PANGO_SCALE * scale_text); +	pango_font_description_set_absolute_size(desc, fs * PANGO_SCALE * scale_text);  	// render the string to a Pango layout  	pango_layout_set_font_description(layout, desc); @@ -1063,14 +1063,14 @@ wBool_t wPrintDocStart(const char * title, int fTotalPageCount, int * copiesP)  			psPrint_d.dpi = p_def;  			scale_adjust = 72/p_def;  		} else { -			if (printTextScale > 0.0) { -				scale_text = printTextScale; -			}  			if (printScale > 0.0) {  				scale_adjust = printScale;  			}  			psPrint_d.dpi = 72;  		} +		if (printTextScale > 0.0) { +			scale_text = printTextScale; +		}  		// in XTrackCAD 0,0 is top left, in cairo bottom left. This is  		// corrected via the following transformations.  | 
