Use font size, not font height
authoramwaterhouse <Andrew Waterhouse>
Wed, 14 Sep 2005 12:20:48 +0000 (12:20 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 14 Sep 2005 12:20:48 +0000 (12:20 +0000)
src/jalview/gui/TreeCanvas.java

index e89f441..79634f6 100755 (executable)
@@ -217,7 +217,7 @@ public class TreeCanvas extends JPanel implements MouseListener, Runnable,
                 ? (PLACEHOLDER + node.getName()) : node.getName();\r
 \r
             int charWidth = fm.stringWidth(name) + 3;\r
-            int charHeight = fm.getHeight();\r
+            int charHeight = font.getSize();\r
 \r
             Rectangle rect = new Rectangle(xend+10, ypos-charHeight/2,\r
                     charWidth, charHeight);\r