Created
May 1, 2016 20:41
-
-
Save weiweihuanghuang/4c401d7b1c4ff0efd479be2358e1d890 to your computer and use it in GitHub Desktop.
Activate Default Features
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#MenuTitle: Activate Default Features | |
# -*- coding: utf-8 -*- | |
__doc__=""" | |
Activate these default features | |
""" | |
import GlyphsApp | |
Font = Glyphs.font | |
editTab = Font.currentTab | |
featureList = ['calt', 'liga'] | |
editTab.selectedFeatures().extend(featureList) | |
Glyphs.redraw() | |
editTab.graphicView().reflow() | |
editTab.graphicView().layoutManager().updateActiveLayer() | |
editTab._updateFeaturePopup() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With the Glyphs 2.3 you can do it like this:
And I extended it a bit, so from 2.3 (886) it is even easier: