Hello,
I'm trying to export PDF while preserving ability to edit text – fonts should not be converted to shapes! According to docs it should work with createFont() but unfortunately I just can't seem to get it working :-(. Here is very simple example. I've tried it in 2.0b7 and 1.51. I would appreciate any help. Thanx.
- import processing.pdf.*;
- PFont f;
- void setup()
- {
- size(200, 200, PDF,"output.pdf");
- background(100);
- f = createFont("FreeSans.ttf",30);
- textFont(f,30);
- }
- void draw() {
- fill(0);
- text("Hello", 30, 60);
- exit();
- }