MCPcopy Create free account
hub / github.com/JetBrains/skija / findTypefaces

Method findTypefaces

shared/java/paragraph/FontCollection.java:79–90  ·  view source on GitHub ↗
(String[] familyNames, FontStyle style)

Source from the content-addressed store, hash-verified

77 }
78
79 public Typeface[] findTypefaces(String[] familyNames, FontStyle style) {
80 try {
81 Stats.onNativeCall();
82 long[] ptrs = _nFindTypefaces(_ptr, familyNames, style._value);
83 Typeface[] res = new Typeface[ptrs.length];
84 for (int i = 0; i < ptrs.length; ++i)
85 res[i] = new Typeface(ptrs[i]);
86 return res;
87 } finally {
88 Reference.reachabilityFence(this);
89 }
90 }
91
92 public Typeface defaultFallback(int unicode, FontStyle style, String locale) {
93 try {

Calls 2

onNativeCallMethod · 0.95
_nFindTypefacesMethod · 0.95

Tested by 1

executeMethod · 0.76