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

Method getUniqueId

shared/java/Typeface.java:84–91  ·  view source on GitHub ↗

@return a 32bit value for this typeface, unique for the underlying font data. Never 0

()

Source from the content-addressed store, hash-verified

82 * @return a 32bit value for this typeface, unique for the underlying font data. Never 0
83 */
84 public int getUniqueId() {
85 try {
86 Stats.onNativeCall();
87 return _nGetUniqueId(_ptr);
88 } finally {
89 ReferenceUtil.reachabilityFence(this);
90 }
91 }
92
93 /**
94 * @return true if the two typefaces reference the same underlying font, treating null as the default font

Callers 1

executeMethod · 0.95

Calls 3

onNativeCallMethod · 0.95
_nGetUniqueIdMethod · 0.95
reachabilityFenceMethod · 0.95

Tested by 1

executeMethod · 0.76