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

Method makeClone

shared/java/Typeface.java:115–117  ·  view source on GitHub ↗

Return a new typeface based on this typeface but parameterized as specified in the variation. If the variation does not supply an argument for a parameter in the font then the value from this typeface will be used as the value for that argument. @param variation axis position @return same typef

(FontVariation variation)

Source from the content-addressed store, hash-verified

113 * @throws IllegalArgumentException on failure
114 */
115 public Typeface makeClone(FontVariation variation) {
116 return makeClone(FontArguments.DEFAULT.withVariations(new FontVariation[] { variation }));
117 }
118
119 /**
120 * Return a new typeface based on this typeface but parameterized as specified in the

Callers 1

executeMethod · 0.95

Calls 4

onNativeCallMethod · 0.95
_nMakeCloneMethod · 0.95
reachabilityFenceMethod · 0.95
equalsMethod · 0.45

Tested by 1

executeMethod · 0.76