Skip to content

Commit ae7cf1d

Browse files
committed
[lib] Added variation checking method in typeface
1 parent 87c5d1d commit ae7cf1d

File tree

1 file changed

+9
-0
lines changed
  • tehreer-android/src/main/java/com/mta/tehreer/graphics

1 file changed

+9
-0
lines changed

tehreer-android/src/main/java/com/mta/tehreer/graphics/Typeface.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,15 @@ private void setupNames() {
223223
}
224224
}
225225

226+
/**
227+
* Returns <code>true</code> if this typeface supports OpenType font variations.
228+
*
229+
* @return <code>true</code> if this typeface supports OpenType font variations.
230+
*/
231+
public boolean isVariable() {
232+
return variationAxes != null;
233+
}
234+
226235
/**
227236
* Returns a variation instance of this typeface with the specified design coordinates.
228237
*

0 commit comments

Comments
 (0)