MCPcopy Create free account
hub / github.com/HumbleUI/Skija / setFont

Method setFont

examples/scenes/src/SwingScene.java:522–536  ·  view source on GitHub ↗
(java.awt.Font font)

Source from the content-addressed store, hash-verified

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

Callers 2

drawStringMethod · 0.95
getFontMethod · 0.95

Calls 3

logMethod · 0.95
skiaFontMethod · 0.95
getMethod · 0.80

Tested by

no test coverage detected