sets the resized native font in PGraphicsOpenGL, fix #2109

This commit is contained in:
codeanticode
2013-10-03 17:03:14 -04:00
parent 994be867e9
commit 312fb99508
4 changed files with 30 additions and 0 deletions
@@ -354,6 +354,12 @@ public class PLWJGL extends PGL {
FontMetrics metrics = pg.parent.getFontMetrics((Font)font);
return metrics.charsWidth(buffer, start, length);
}
@Override
protected Object getDerivedFont(Object font, float size) {
return ((Font)font).deriveFont(size);
}
///////////////////////////////////////////////////////////