Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Commit

Permalink
more efficient way of determining VariableFont-ness
Browse files Browse the repository at this point in the history
  • Loading branch information
HinTak committed Nov 25, 2018
1 parent 7c5a991 commit fa23790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OTFontFile/OTFont.cs
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ public bool ContainsTrueTypeOutlines()

public bool IsVariableFont()
{
if ( (GetTable("fvar") == null) || (GetTable("STAT") == null) )
if ( (GetDirectoryEntry("fvar") == null) || (GetDirectoryEntry("STAT") == null) )
return false;
else
return true;
Expand Down

0 comments on commit fa23790

Please sign in to comment.