Hi there,
I do have a legacy 3rd party tool, generating a pdf with a lot of graphics and texts.
This tool can not embed fonts.
This Tool somehow removes spaces from font names.
I use “JetBrains Mono” for some texts, and want to embed this font into the pdf
So, I managed to add this font to the pdf using pymupdf.
so output from pdffonts looks like:
name type encoding emb sub uni object ID
JetBrainsMono TrueType WinAnsi no no no 50 0
Courier-Bold Type 1 WinAnsi no no no 52 0
fstroke3 TrueType WinAnsi no no no 53 0
JetBrains Mono Regular CID Type 0C (OT) Identity-H yes no yes 1739 0
But it seems not every viewer can work with this. Basically I just found chrome browser viewer showing the correct font, but maybe it has JetBrains somwhere with it and is not using the embedded version.
But this gives me the indication that “JetBrainsMono“ without spaces is somehow working as non embedded font.
Unfortunately I can not use rpl_font.py, since there are many hidden text items, the document is not readable then.
So can I embed a font for existing text at all?
At lest I can not embed a font and use an existing name.
Any Idea here?