| changeset 61742 | fd3b214b0979 |
| parent 61529 | 82fc5a6231a2 |
| child 62113 | 16de2a9b5b3d |
--- a/src/Pure/GUI/gui.scala Mon Nov 23 18:05:33 2015 +0100 +++ b/src/Pure/GUI/gui.scala Mon Nov 23 19:51:33 2015 +0100 @@ -215,6 +215,10 @@ /* font operations */ + def copy_font(font: Font): Font = + if (font == null) null + else new Font(font.getFamily, font.getStyle, font.getSize) + def line_metrics(font: Font): LineMetrics = font.getLineMetrics("", new FontRenderContext(null, false, false))