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

Method setTypeface

shared/java/Font.java:363–372  ·  view source on GitHub ↗

Sets Typeface to typeface. Pass null to use the default typeface.

(@Nullable Typeface typeface)

Source from the content-addressed store, hash-verified

361 * Sets Typeface to typeface. Pass null to use the default typeface.
362 */
363 public Font setTypeface(@Nullable Typeface typeface) {
364 try {
365 _resetMetrics();
366 Stats.onNativeCall();
367 _nSetTypeface(_ptr, Native.getPtr(typeface));
368 return this;
369 } finally {
370 ReferenceUtil.reachabilityFence(typeface);
371 }
372 }
373
374 /**
375 * Sets text size in points. Has no effect if value is not greater than or equal to zero.

Calls 5

_resetMetricsMethod · 0.95
onNativeCallMethod · 0.95
_nSetTypefaceMethod · 0.95
getPtrMethod · 0.95
reachabilityFenceMethod · 0.95

Tested by

no test coverage detected