mirror of
https://github.com/documenso/documenso.git
synced 2025-11-10 04:22:32 +10:00
Use Noto Sans to gracefully handle inserting custom text on PDF's. Previously we were using Helvetica which is a standard PDF font but that would fail for any character that couldn't be encoded in WinANSI. Noto Sans was chosen as it has support for a large number of languages and glyphs with challenges now being adding support for CJK glyphs.
10 lines
298 B
TypeScript
10 lines
298 B
TypeScript
import { APP_BASE_URL } from './app';
|
|
|
|
export const DEFAULT_STANDARD_FONT_SIZE = 12;
|
|
export const DEFAULT_HANDWRITING_FONT_SIZE = 50;
|
|
|
|
export const MIN_STANDARD_FONT_SIZE = 8;
|
|
export const MIN_HANDWRITING_FONT_SIZE = 20;
|
|
|
|
export const CAVEAT_FONT_PATH = () => `${APP_BASE_URL()}/fonts/caveat.ttf`;
|