Return an immutable copy of the requested font table, or null if that table was not found. @param tag The table tag whose contents are to be copied @return an immutable copy of the table's data, or null
(String tag)
| 245 | * @return an immutable copy of the table's data, or null |
| 246 | */ |
| 247 | @Nullable |
| 248 | public Data getTableData(String tag) { |
| 249 | try { |
| 250 | Stats.onNativeCall(); |
| 251 | long ptr = _nGetTableData(_ptr, FourByteTag.fromString(tag)); |
| 252 | return ptr == 0 ? null : new Data(ptr); |
| 253 | } finally { |
| 254 | ReferenceUtil.reachabilityFence(this); |
| 255 | } |
| 256 | } |
| 257 | |
| 258 | /** |
| 259 | * @return the units-per-em value for this typeface, or zero if there is an error |