Skip to content

Commit

Permalink
feat(geo): change printed text to Sans Serif font (#1626)
Browse files Browse the repository at this point in the history
  • Loading branch information
aziz-access authored Feb 5, 2024
1 parent e70b6fc commit 748099a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/geo/src/lib/print/shared/print.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ export class PrintService {
mapPrintExtent: Array<number>;

TEXTPDFFONT = {
titleFont: 'Times',
titleFont: 'Sans Serif',
titleFontStyle: 'bold',
subtitleFont: 'Times',
subtitleFont: 'Sans Serif',
subtitleFontStyle: 'bold',
commentFont: 'courier',
commentFont: 'Sans Serif',
commentFontStyle: 'normal',
commentFontSize: 12
};
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 748099a

Please sign in to comment.