Unfortunately this doesnt work, I've already tried it. In the example above I get error. While in examples that use beginRecord() / endRecord() I don't get error but pdf with font again converted to shapes :-(
- Exception in thread "Animation Thread" java.lang.RuntimeException: Use textMode(SHAPE) with PDF when loading .ttf and .otf files with createFont().
- at processing.pdf.PGraphicsPDF.checkFont(Unknown Source)
- at processing.pdf.PGraphicsPDF.textFont(Unknown Source)
- at processing.core.PGraphics.textFont(PGraphics.java:3973)
- at processing.core.PApplet.textFont(PApplet.java:12137)
- at pdf_font_export_test.setup(pdf_font_export_test.java:27)
- at processing.core.PApplet.handleDraw(PApplet.java:2117)
- at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:193)
- at processing.core.PApplet.run(PApplet.java:2020)
- at java.lang.Thread.run(Thread.java:662)