The current font files are missing the unicode cmap that jsPDF needs to render Greek characters. jsPDF requires fonts in a specific format with proper unicode mappings.
-
Go to the jsPDF Font Converter:
-
Download the Noto Sans TTF files:
- Noto Sans Regular: https://fonts.google.com/noto/specimen/Noto+Sans
- Noto Sans Bold: https://fonts.google.com/noto/specimen/Noto+Sans (select Bold weight)
- Download the
.ttffiles
-
Convert the fonts:
- Open the font converter page
- Upload the
NotoSans-Regular.ttffile - Click "Convert"
- Download the generated
.jsfile - Repeat for
NotoSans-Bold.ttf
-
The converted files will have:
- Proper unicode cmap support
- Font metrics (widths, etc.)
- Base64 encoded font data
- A format that jsPDF can actually use
If you can find pre-converted Noto Sans fonts for jsPDF, you can use those directly.
We could also use a library like pdfmake or react-pdf that has better font support, but that would require changing the PDF generation code.
Please provide one of the following:
- Converted font files - If you convert the fonts using the jsPDF font converter, I can integrate them
- TTF files - If you provide the original TTF files, I can help set up the conversion process
- Confirmation - If you want me to guide you through the conversion step-by-step
The converted files should be .js files that export the font data in jsPDF's required format.