(java.awt.Font font)
| 520 | } |
| 521 | |
| 522 | @Override |
| 523 | public void setFont(java.awt.Font font) { |
| 524 | log("[+] setFont " + font); |
| 525 | if (this.font != font) { |
| 526 | this.font = font; |
| 527 | |
| 528 | var cachedFont = fontCache.get(font); |
| 529 | if (cachedFont == null) { |
| 530 | cachedFont = skiaFont(font); |
| 531 | fontCache.put(font, cachedFont); |
| 532 | } |
| 533 | |
| 534 | skiaFont = cachedFont; |
| 535 | } |
| 536 | } |
| 537 | |
| 538 | public static final Map<java.awt.Font, Font> fontCache = new ConcurrentHashMap<>(); |
| 539 |
no test coverage detected