From: Jim Procter Date: Fri, 26 Jun 2020 16:24:16 +0000 (+0100) Subject: JAL-3673 make sure font metrics are updated if dealing with reference sequence font ! X-Git-Tag: Develop-2_11_2_0-d20201215~24^2~36^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d53294db69b6bb2fe39415b28abb98092234ce67;p=jalview.git JAL-3673 make sure font metrics are updated if dealing with reference sequence font ! --- diff --git a/src/jalview/gui/IdCanvas.java b/src/jalview/gui/IdCanvas.java index 10c0787..1a8e79f 100755 --- a/src/jalview/gui/IdCanvas.java +++ b/src/jalview/gui/IdCanvas.java @@ -324,6 +324,7 @@ public class IdCanvas extends JPanel implements ViewportListenerI if (hasHiddenRows || alignViewport.isDisplayReferenceSeq()) { g.setFont(getHiddenFont(sequence, alignViewport)); + fm = g.getFontMetrics(); } // Selected sequence colours