From 31f36750cd5479fc05e2a86ade5153e6a65955f6 Mon Sep 17 00:00:00 2001 From: enes Date: Fri, 23 Aug 2024 11:06:25 +0200 Subject: [PATCH] fix(pdf): font style consistency --- src/components/DrawPDFFields/style.module.scss | 4 ++++ src/components/PDFView/PdfMarkItem.tsx | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/DrawPDFFields/style.module.scss b/src/components/DrawPDFFields/style.module.scss index b3150b3..d0085df 100644 --- a/src/components/DrawPDFFields/style.module.scss +++ b/src/components/DrawPDFFields/style.module.scss @@ -23,6 +23,10 @@ justify-content: center; align-items: center; + font-family: Arial; + font-size: 16px; + font-weight: normal; + &.nonEditable { cursor: default; visibility: hidden; diff --git a/src/components/PDFView/PdfMarkItem.tsx b/src/components/PDFView/PdfMarkItem.tsx index d93c2b2..138c5e1 100644 --- a/src/components/PDFView/PdfMarkItem.tsx +++ b/src/components/PDFView/PdfMarkItem.tsx @@ -1,6 +1,6 @@ import { CurrentUserMark } from '../../types/mark.ts' import styles from '../DrawPDFFields/style.module.scss' -import { inPx } from '../../utils/pdf.ts' +import { FONT_TYPE, inPx } from '../../utils/pdf.ts' interface PdfMarkItemProps { userMark: CurrentUserMark @@ -31,7 +31,8 @@ const PdfMarkItem = ({ left: inPx(location.left), top: inPx(location.top), width: inPx(location.width), - height: inPx(location.height) + height: inPx(location.height), + fontFamily: FONT_TYPE }} > {getMarkValue()}