mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
sets the resized native font in PGraphicsOpenGL, fix #2109
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user