Thanks, but the key to the 'solution' to this apparent
non-issue was your mentioning that the fonts are probably pre-rendered. That's
an option I never encountered, frankly, but it is probably the best one
possible, at least if it is done properly. Usually there are three options for
fonts in a PDF:
Interestingly enough, Adobe complains about the requirement of completely embedded fonts and adds:
- Fonts Substitution
Acrobat renders—on the fly—a “faux font” representation using typeface information included in the PDF.- Fonts Embedding
All typefaces necessary to render a font are embedded in the file.- Fonts Subsetting
Only the typeface characters necessary to render the file are embedded. Typefaces may have thousands of characters. Only embedding the actual characters used can reduce file size.
and:There is no technical advantage to completely embedding fonts. There is nothing you can do with a PDF that has its fonts completely embedded that you cannot do with a subset file.
Only older Type 1 and TrueType fonts can be completely embedded by Acrobat.
They go on to say that OpenType fonts are superior and that
Except for a few rare cases, Acrobat can only subset OpenType fonts.
I guess complete embedding would not be necessary, except in
the case where someone might use the horrible
Acrobat Pro text touch-up tool to alter some text. But why would a service
provider do that? And yet I read at many online providers that complete
embedding is highly recommended. Overkill for sure.
In an effort to solve a more serious problem--Transparency and resolution problems with exported PDF, I read, with some amusement, in the PGraphicsPDF source code, that it is currently using iText 2.1.7 (latest version is 5.3.5), apparently to reduce sketch loading time by a few seconds whenever the code was written , which instantiates an iText PdfContentByte object and then uses a method, createGraphics, that was deprecated even back then, for text operations. Oddly enough, according to the documentation for this ancient version of iText, this method and other overloaded versions of itOne more thing.
So there you have it, straight from the horse’s mouth--yet a fourth PDF font option. Go figure. The Adobe people must still be reeling from this unexpected twist. LOL.Gets a Graphics2D to write on. The graphics are translated to PDF commands as shapes. No PDF fonts will appear.
Sorry if I bored you but I like to be as thorough as possible. I’m hoping that this might provide some impetus toward updating the PDF library. Please?