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

Method makeFromFile

shared/java/FontMgr.java:134–137  ·  view source on GitHub ↗

Create a typeface for the specified file name or null if the data is not recognized. The caller must call #close() on the returned object if it is not null.

(@NotNull String path)

Source from the content-addressed store, hash-verified

132 * The caller must call {@link #close()} on the returned object if it is not null.
133 */
134 @Nullable
135 public Typeface makeFromFile(@NotNull String path) {
136 return makeFromFile(path, 0);
137 }
138
139 /**
140 * Create a typeface for the specified file name and TTC index (pass 0 for none)

Callers 15

executeMethod · 0.45
baseMethod · 0.45
executeMethod · 0.45
TextLineTestClass · 0.45
executeMethod · 0.45
executeMethod · 0.45
FontSceneMethod · 0.45
FigmaSceneMethod · 0.45
FontVariationsSceneMethod · 0.45

Calls 3

onNativeCallMethod · 0.95
_nMakeFromFileMethod · 0.95
reachabilityFenceMethod · 0.95

Tested by 6

executeMethod · 0.36
baseMethod · 0.36
executeMethod · 0.36
executeMethod · 0.36
executeMethod · 0.36