apply cairo_font_scale to svg and ps/pdf exports

This commit is contained in:
Stefan Schippers 2024-03-24 19:59:28 +01:00
parent 85d7e565a3
commit 3186270548
2 changed files with 2 additions and 2 deletions

View File

@ -674,7 +674,7 @@ static void ps_draw_string(int layer, const char *str, short rot, short flip, in
double longest_line;
if(str==NULL) return;
size = xscale*53.;
size = xscale*53. * cairo_font_scale;
height = size*xctx->mooz * 1.147; /* was 1.147 */
ascent = size*xctx->mooz * 0.808; /* was 0.908 */
descent = size*xctx->mooz * 0.219; /* was 0.219 */

View File

@ -325,7 +325,7 @@ static void svg_draw_string(int layer, const char *str, short rot, short flip, i
double longest_line;
if(str==NULL) return;
size = xscale*52.;
size = xscale*52. * cairo_font_scale;
height = size*xctx->mooz * 1.147;
ascent = size*xctx->mooz * 0.908;
descent = size*xctx->mooz * 0.219;