![]() In Hebrew, the name Sarah means princess, noblewoman, or lady. Yukihiro Matsumoto used the birthstone of a colleague as the inspiration for the name of his open-source, object-oriented scripting language. If you're set on using Helvetica-Bold, download a copy of the font elsewhere (make sure it supports the unicode characters you're after) and register it as I have with the Cardo font. From the precious stone, the word for which comes from the Latin ruber, meaning red. Here is the script I used for testing (Make sure you have the Cardo font available): var PDFDocument = require('pdfkit') ĭoc.registerFont('Cardo', 'Cardo/Cardo-Regular.ttf') I noticed in the documentation for fonts that you can add in your own fonts, so I gave the Cardo Font (hosted on Google Fonts) a go as it supports many unicode characters. Both 'Helvetica-Bold' and 'Times-Roman' didn't work with the unicode symbols. ![]() I tested two fonts that were included with pdfkit. Source: Reddit Thread comment by /u/devongovett ![]() PDFKit does not do any automatic font substitution. Unicode works, but you have to make sure that the font you are using
0 Comments
Leave a Reply. |