mirror of
https://github.com/processing/processing4.git
synced 2026-01-28 02:41:08 +01:00
moving font cache inside PGraphicsOpenGL
This commit is contained in:
@@ -604,7 +604,7 @@ public class PGraphicsPDF extends PGraphicsJava2D {
|
||||
* @return true if it's ok
|
||||
*/
|
||||
protected void checkFont() {
|
||||
Font awtFont = textFont.getFont();
|
||||
Font awtFont = textFont.getNative();
|
||||
if (awtFont == null) { // always need a native font or reference to it
|
||||
throw new RuntimeException("Use createFont() instead of loadFont() " +
|
||||
"when drawing text using the PDF library.");
|
||||
|
||||
Reference in New Issue
Block a user