annotation label font size change in applet.
authorjprocter <Jim Procter>
Thu, 20 Jul 2006 17:41:32 +0000 (17:41 +0000)
committerjprocter <Jim Procter>
Thu, 20 Jul 2006 17:41:32 +0000 (17:41 +0000)
src/jalview/appletgui/AnnotationLabels.java

index ae47b72..8b3a503 100755 (executable)
@@ -159,7 +159,8 @@ public class AnnotationLabels
 \r
   public void drawComponent(Graphics g, int width)\r
   {\r
-    FontMetrics fm = g.getFontMetrics(g.getFont());\r
+    g.setFont(av.getFont());\r
+    FontMetrics fm = g.getFontMetrics(av.getFont());\r
     g.setColor(Color.white);\r
     g.fillRect(0, 0, getSize().width, getSize().height);\r
 \r