From 7c5a991e8d6151d9c10d5d47092a25f5f2d0b9af Mon Sep 17 00:00:00 2001 From: Hin-Tak Leung Date: Sun, 25 Nov 2018 03:10:53 +0000 Subject: [PATCH] IsVariableFont() method --- OTFontFile/OTFont.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/OTFontFile/OTFont.cs b/OTFontFile/OTFont.cs index d3f2aba..ea1a4db 100644 --- a/OTFontFile/OTFont.cs +++ b/OTFontFile/OTFont.cs @@ -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