How do I force the use of base-14 fonts? #1848
-
What do I need to do to make sure this doesn't use Helvetica (or a substitute) if it happens to be available on the system but instead avoids embedding any fonts into the pdf:
I've considered using Helvetica Neue LT Std and write a script that manually removes the font object and forces the use of helv... But I figured it's best I'd ask here first instead. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
I don't think we can. Default PDF generation is done by the libtexpdf outputter, which invokes (hence the name), via a Lua-C bridge/wrapper, the libtexpdf library. The latter was extracted from TeX's dvipdfmx software. It might have ways to disable embedding, but it's not exposed via our wrappers. Note that even if there would be a way to do it (digging deep into the libtexpdf / dvipdfmx code base...), this would nevertheless make the file non compliant with ISO standards, which is the reason why dvipdfmx considers non-embedding to be deprecated:
In other terms, besides non being trivial, it's probably a bad idea, not worth the effort? Other PDF libraries could be supported by SILE, such as cairo or podofo - but they were only experimented long ago and are not actively maintained. The outputters and wrappers lack a whole lot of features, so this is not an option either in the current state of art. EDIT: Of course, if someone has the guts and skills to revive the cairo or podofo outputters... |
Beta Was this translation helpful? Give feedback.
-
I'm not quite sure what you are after here. If you're worried about the use of a specific font, use a |
Beta Was this translation helpful? Give feedback.
I don't think we can.
Default PDF generation is done by the libtexpdf outputter, which invokes (hence the name), via a Lua-C bridge/wrapper, the libtexpdf library.
The latter was extracted from TeX's dvipdfmx software.
It might have ways to disable embedding, but it's not exposed via our wrappers.
Note that even if there would be a way to do it (digging deep into the libtexpdf / dvipdfmx code base...), this would nevertheless make the file non compliant with ISO standards, which is the reason why dvipdfmx considers non-embedding to be deprecated: