My understanding of PDF: basically, unless specifically told, it uses bases fonts that Acrobat always has, for portability reasons.
I used a baroque font not installed on my system: it was displayed on screen, but not when I viewed the PDF in a reader.
If I use a font present on my system (instead of in the data folder), it displayed it correctly in the sketch too, but the resulting PDF lacked it.
I think PDF can store the text as curves (if the program generating the PDF told it so), but that's good only for small texts.
I believe it can store the font name, and reuse it if present on the system, but it doesn't seem to do so with Processing generation.
And indeed, it is supposed to be able to embed the font, if its licenses allows it (some are not redistributable). But as I said, it might take some special care with iText, particularly in Java2D mode (the mode used by Processing).
I used a baroque font not installed on my system: it was displayed on screen, but not when I viewed the PDF in a reader.
If I use a font present on my system (instead of in the data folder), it displayed it correctly in the sketch too, but the resulting PDF lacked it.
I think PDF can store the text as curves (if the program generating the PDF told it so), but that's good only for small texts.
I believe it can store the font name, and reuse it if present on the system, but it doesn't seem to do so with Processing generation.
And indeed, it is supposed to be able to embed the font, if its licenses allows it (some are not redistributable). But as I said, it might take some special care with iText, particularly in Java2D mode (the mode used by Processing).