From a57a956b253424ee9984e735fc19d09327b05492 Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Sun, 28 Apr 2024 22:16:56 +0200 Subject: [PATCH] add getFeatures() placeholder --- src/fontra_glyphs/backend.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/fontra_glyphs/backend.py b/src/fontra_glyphs/backend.py index 49325e1..9812726 100644 --- a/src/fontra_glyphs/backend.py +++ b/src/fontra_glyphs/backend.py @@ -16,6 +16,7 @@ GlyphAxis, GlyphSource, Layer, + OpenTypeFeatures, StaticGlyph, VariableGlyph, ) @@ -146,6 +147,10 @@ async def getAxes(self) -> Axes: async def getUnitsPerEm(self) -> int: return self.gsFont.upm + async def getFeatures(self) -> OpenTypeFeatures: + # TODO: extract features + return OpenTypeFeatures() + async def getCustomData(self) -> dict[str, Any]: return {}