Sets Typeface to typeface. Pass null to use the default typeface.
(@Nullable Typeface typeface)
| 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. |
no test coverage detected