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

Method makeFromFile

shared/java/Typeface.java:130–133  ·  view source on GitHub ↗

@return a new typeface given a file @throws IllegalArgumentException If the file does not exist, or is not a valid font file

(String path)

Source from the content-addressed store, hash-verified

128 * @throws IllegalArgumentException If the file does not exist, or is not a valid font file
129 */
130 @NotNull
131 public static Typeface makeFromFile(String path) {
132 return makeFromFile(path, 0);
133 }
134
135 /**
136 * @return a new typeface given a file

Callers 15

executeMethod · 0.95
executeMethod · 0.95
TextLineTestClass · 0.95
executeMethod · 0.95
FontSceneMethod · 0.95
FigmaSceneMethod · 0.95
FontVariationsSceneMethod · 0.95
FontRenderingSceneMethod · 0.95
RunIteratorSceneMethod · 0.95
RunHandlerSceneMethod · 0.95
TextStyleSceneMethod · 0.95
ShapersSceneMethod · 0.95

Calls 2

onNativeCallMethod · 0.95
_nMakeFromFileMethod · 0.95

Tested by 3

executeMethod · 0.76
executeMethod · 0.76
executeMethod · 0.76