mirror of
https://github.com/documenso/documenso.git
synced 2026-07-26 18:04:55 +10:00
fix: render unicode characters in typed signatures (#2728)
This commit is contained in:
committed by
GitHub
parent
219db32fdf
commit
306e7fe5ed
@@ -14,6 +14,7 @@ import { renderSVG } from 'uqr';
|
||||
|
||||
import { NEXT_PUBLIC_WEBAPP_URL } from '../../constants/app';
|
||||
import { APP_I18N_OPTIONS } from '../../constants/i18n';
|
||||
import { getSignatureFontFamily } from '../../constants/pdf';
|
||||
import { RECIPIENT_ROLE_SIGNING_REASONS, RECIPIENT_ROLES_DESCRIPTION } from '../../constants/recipient-roles';
|
||||
import type { TDocumentAuditLogBaseSchema } from '../../types/document-audit-logs';
|
||||
import { svgToPng } from '../../utils/images/svg-to-png';
|
||||
@@ -302,7 +303,7 @@ const renderColumnTwo = (options: RenderColumnOptions) => {
|
||||
x: 2,
|
||||
text: recipient.signatureField?.signature?.typedSignature,
|
||||
padding: 4,
|
||||
fontFamily: 'Caveat',
|
||||
fontFamily: getSignatureFontFamily(recipient.signatureField?.signature?.typedSignature),
|
||||
fontSize: 16,
|
||||
align: 'center',
|
||||
verticalAlign: 'middle',
|
||||
|
||||
Reference in New Issue
Block a user