manpdf icon indicating copy to clipboard operation
manpdf copied to clipboard

Customizable PDF fonts

Open delameter opened this issue 2 years ago • 2 comments

Hello again.

After making several PDFs noticed that there is no embedded fonts inside. That was expected, but default document viewer renders them in Times font (Times New Roman), also known as "Font of Pain" in my homeland. (because de facto it's a standard font for papers and essays in universities).

Next I tried to substitute it with something better using Ubuntu system font manager, but these rules are simply ignored, maybe because the fonts are already substituted, I have no idea.

The question is, how hard would it be to add an option/configuration value to set font family for produced PDFs? With or without embedding. I ran through groff man page but didn't see anything similar. What I did found is that groff can make TeX files, so theoretically it's possible to make a "tex" file, add directives to setup fonts, and feed it to latex to grab a PDF, but I hope there is a more elegant way to do it.

Thanks

delameter avatar Apr 09 '23 19:04 delameter

Thanks for the report,

Unfortunately, with the tech stack in use, fonts are generally limited to Times at hardcoded sizes.

Fortunately, I have some ideas in this area that I hope to try soon.

sebastiancarlos avatar Apr 16 '23 07:04 sebastiancarlos

Thanks :) Will wait for it

delameter avatar Apr 17 '23 20:04 delameter