You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The custom font doesn`t apply when use into Table Cell #1635
@joernroeder I saw that in the file you referenced, the code only acknowledges font.src. Should there also be a path that checks for font.family or font as a string so that users can reference a built-in font in a more natural way?
Activity
joernroeder commentedon Jul 20, 2025
looks like types are just not correct.
https://github.com/foliojs/pdfkit/blob/master/lib/table/render.js#L86
monolithed commentedon Dec 4, 2025
Here's my workaround:
monolithed commentedon Dec 5, 2025
And probably #1647
kshep92 commentedon Sep 6, 2026
@joernroeder I saw that in the file you referenced, the code only acknowledges
font.src. Should there also be a path that checks forfont.familyorfontas a string so that users can reference a built-in font in a more natural way?For example:
If so, I'll create a PR for this feature.