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

Commit

Permalink
IsVariableFont() method
Browse files Browse the repository at this point in the history
  • Loading branch information
HinTak committed Nov 25, 2018
1 parent 442869f commit 7c5a991
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions OTFontFile/OTFont.cs
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,14 @@ public bool ContainsTrueTypeOutlines()
return false;
}

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

public ushort GetMaxpNumGlyphs()
{
// this routine caches the maxp.numGlyphs value for better performance
Expand Down

0 comments on commit 7c5a991

Please sign in to comment.