moving font cache inside PGraphicsOpenGL

This commit is contained in:
benfry
2012-09-02 20:07:26 +00:00
parent 720d1ef25c
commit 662fec53e6
16 changed files with 157 additions and 143 deletions

View File

@@ -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.");