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

Method RunIteratorScene

examples/scenes/src/RunIteratorScene.java:21–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19 public final Paint textFill = new Paint().setColor(0xFF000000);
20
21 public RunIteratorScene() {
22 lato36 = new Font(FontMgr.getDefault().makeFromFile(file("fonts/Lato-Regular.ttf")), 36);
23 fira36 = new Font(FontMgr.getDefault().makeFromFile(file("fonts/FiraCode-Regular.ttf")), 36);
24 inter36 = new Font(inter, 36);
25 inter11 = new Font(inter, 11);
26 inter11Metrics = inter11.getMetrics();
27 geeza36 = new Font(FontMgr.getDefault().makeFromFile(file("fonts/Geeza Pro Regular.ttf")), 36);
28
29 Typeface emoji = FontMgr.getDefault().matchFamilyStyleCharacter(null, FontStyle.NORMAL, null, "😀".codePointAt(0));
30 emoji36 = emoji == null ? null : new Font(emoji, 36);
31 }
32
33 @Override
34 public void draw(Canvas canvas, int width, int height, float dpi, int xpos, int ypos) {

Callers

nothing calls this directly

Calls 5

getDefaultMethod · 0.95
fileMethod · 0.80
getMetricsMethod · 0.80
makeFromFileMethod · 0.45

Tested by

no test coverage detected