From: jprocter Date: Tue, 15 Aug 2006 11:10:03 +0000 (+0000) Subject: make annotation label font size follow alignment font size. X-Git-Tag: Release_2_1~54 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=11a6feaafc4883d3ff7bcf681862fce6a10f3286;p=jalview.git make annotation label font size follow alignment font size. --- diff --git a/src/jalview/gui/AnnotationLabels.java b/src/jalview/gui/AnnotationLabels.java index a9adde4..0788864 100755 --- a/src/jalview/gui/AnnotationLabels.java +++ b/src/jalview/gui/AnnotationLabels.java @@ -413,9 +413,9 @@ public class AnnotationLabels extends JPanel implements MouseListener, public void drawComponent(Graphics g, int width) { if(av.getFont().getSize()<10) - g.setFont(new Font("Arial", Font.PLAIN, av.getFont().getSize()-1)); - else g.setFont(font); + else + g.setFont(av.getFont()); FontMetrics fm = g.getFontMetrics(g.getFont()); g.setColor(Color.white);