We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae8218b commit 3bdad5cCopy full SHA for 3bdad5c
demo/src/main/java/com/mta/tehreer/demo/VariableFontsActivity.java
@@ -200,6 +200,6 @@ private void setupTypeface(Typeface typeface) {
200
201
private void setupCoordinate(int axisIndex, float coordinate) {
202
mVariationCoordinates[axisIndex] = coordinate;
203
- setupTypeface(mTypeface.deriveVariation(mVariationCoordinates));
+ setupTypeface(mTypeface.getVariationInstance(mVariationCoordinates));
204
}
205
0 commit comments