annotation label font size change in applet.
[jalview.git] / 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