From: amwaterhouse Date: Wed, 14 Sep 2005 12:20:48 +0000 (+0000) Subject: Use font size, not font height X-Git-Tag: Release_2_05b~23 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=687aca6928c6be41c2693c6c0f5ab651a40e815e;p=jalview.git Use font size, not font height --- diff --git a/src/jalview/gui/TreeCanvas.java b/src/jalview/gui/TreeCanvas.java index e89f441..79634f6 100755 --- a/src/jalview/gui/TreeCanvas.java +++ b/src/jalview/gui/TreeCanvas.java @@ -217,7 +217,7 @@ public class TreeCanvas extends JPanel implements MouseListener, Runnable, ? (PLACEHOLDER + node.getName()) : node.getName(); int charWidth = fm.stringWidth(name) + 3; - int charHeight = fm.getHeight(); + int charHeight = font.getSize(); Rectangle rect = new Rectangle(xend+10, ypos-charHeight/2, charWidth, charHeight);