Create a typeface for the specified file name or null if the data is not recognized. The caller must call #close() on the returned object if it is not null.
(@NotNull String path)
| 132 | * The caller must call {@link #close()} on the returned object if it is not null. |
| 133 | */ |
| 134 | @Nullable |
| 135 | public Typeface makeFromFile(@NotNull String path) { |
| 136 | return makeFromFile(path, 0); |
| 137 | } |
| 138 | |
| 139 | /** |
| 140 | * Create a typeface for the specified file name and TTC index (pass 0 for none) |