PDF export missing font
in
Programming Questions
•
2 years ago
I found a strange behaviour of Processing 1.2.1:
- import processing.pdf.*;
- size(600,400);
- beginRecord(PDF, "test.pdf");
- PFont font = createFont("Arial", 10);
- textMode(SHAPE); // <-------- comment this!
- textFont(font);
- endRecord();
Commenting textMode(SHAPE) the program stops with error "The font Arial cannot be used with PDF Export". PGraphicsPDF.listFonts() returns 0 fonts...
If textFont is before textMode I get the same error.
The program works correctly when I leave textMode(SHAPE), even if I get a warning "textMode(SHAPE) is not supported by this renderer".
Something I forgot along the way or is it a know behaviour?
Alessandro
1