Set font italic
authoramwaterhouse <Andrew Waterhouse>
Mon, 12 Dec 2005 12:24:57 +0000 (12:24 +0000)
committeramwaterhouse <Andrew Waterhouse>
Mon, 12 Dec 2005 12:24:57 +0000 (12:24 +0000)
src/jalview/appletgui/IdCanvas.java

index 9773019..44ba2e0 100755 (executable)
@@ -204,16 +204,15 @@ public class IdCanvas
             for (int i = starty; i < av.alignment.getHeight(); i++)\r
             {\r
                 SequenceI s = av.alignment.getSequenceAt(i);\r
+                gg.setFont(italic);\r
                 drawIdString(gg, s, i, 0, ypos);\r
             }\r
 \r
             if(labels!=null)\r
             {\r
-              gg.setFont(av.getFont());\r
               gg.translate(0, ypos+(av.getAlignment().getHeight() * av.charHeight));\r
               labels.drawComponent(gg, getSize().width);\r
               gg.translate(0, -ypos-(av.getAlignment().getHeight() * av.charHeight));\r
-              gg.setFont(italic);\r
             }\r
         }\r
 \r