From 748099ab375da70dd1baf5d3cee892765260cd1a Mon Sep 17 00:00:00 2001 From: Aziz <119948730+aziz-access@users.noreply.github.com> Date: Mon, 5 Feb 2024 21:52:51 +0100 Subject: [PATCH] feat(geo): change printed text to Sans Serif font (#1626) --- packages/geo/src/lib/print/shared/print.service.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/geo/src/lib/print/shared/print.service.ts b/packages/geo/src/lib/print/shared/print.service.ts index 3d8584c4cb..11f916f0c9 100644 --- a/packages/geo/src/lib/print/shared/print.service.ts +++ b/packages/geo/src/lib/print/shared/print.service.ts @@ -46,11 +46,11 @@ export class PrintService { mapPrintExtent: Array; TEXTPDFFONT = { - titleFont: 'Times', + titleFont: 'Sans Serif', titleFontStyle: 'bold', - subtitleFont: 'Times', + subtitleFont: 'Sans Serif', subtitleFontStyle: 'bold', - commentFont: 'courier', + commentFont: 'Sans Serif', commentFontStyle: 'normal', commentFontSize: 12 }; @@ -493,7 +493,7 @@ export class PrintService { const mapScale = map.viewController.getScale(dpi); textProjScale += scaleText + ': ~ 1 / ' + formatScale(mapScale); } - doc.setFont('courier'); + doc.setFont(this.TEXTPDFFONT.commentFont); doc.setFontSize(projScaleSize); doc.text(textProjScale, projScaleMarginLeft, heightPixels); }