File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
tehreer-android/src/main/java/com/mta/tehreer/graphics Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 2727
2828import com .mta .tehreer .font .VariationAxis ;
2929import com .mta .tehreer .internal .JniBridge ;
30- import com .mta .tehreer .internal .sfnt .DataTable ;
3130import com .mta .tehreer .internal .sfnt .tables .fvar .FontVariationsTable ;
3231import com .mta .tehreer .internal .sfnt .tables .fvar .VariationAxisRecord ;
3332import com .mta .tehreer .sfnt .SfntTag ;
@@ -149,13 +148,12 @@ private void init(long nativeTypeface) {
149148 }
150149
151150 private void setupVariations () {
152- final byte [] fvarData = getTableData ( SfntTag . make ( "fvar" ) );
153- if (fvarData == null ) {
151+ FontVariationsTable fvarTable = FontVariationsTable . from ( this );
152+ if (fvarTable == null ) {
154153 return ;
155154 }
156155
157156 NameTable nameTable = NameTable .from (this );
158- FontVariationsTable fvarTable = new FontVariationsTable (new DataTable (fvarData ));
159157 VariationAxisRecord [] axisRecords = fvarTable .axisRecords ();
160158
161159 variationAxes = new ArrayList <>(axisRecords .length );
You can’t perform that action at this time.
0 commit comments