hlavki commented on a change in pull request #2509:
URL: https://github.com/apache/netbeans/pull/2509#discussion_r525839582
##########
File path:
ide/lib.terminalemulator/src/org/netbeans/lib/terminalemulator/MyFontMetrics.java
##########
@@ -142,18 +142,22 @@ public MyFontMetrics(Component component, Font font) {
height -= leading;
leading = 0;
- cwidth_cache = CacheFactory.cacheForFontMetrics(fm);
+ cwidth_cache = CacheFactory.cacheForFontMetrics(getFm());
+ }
+
+ public FontMetrics getFm() {
+ return this.cmp.getFontMetrics(cmp.getFont());
Review comment:
@lkishalmi, sorry for delay. I didn't have time to fix @sdedic's
suggestion. Maybe in next round. thanks
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists