-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing GdefFeatureWriter, and remove unneeded mode option from KernFeatureWriter since we now always add insertion marker comment to always generate kern feature even if a manual feature exists.
- Loading branch information
1 parent
5d3cdd8
commit 66509dc
Showing
1 changed file
with
3 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -204,19 +204,15 @@ | |
UFO2FT_COLOR_LAYERS_KEY = "com.github.googlei18n.ufo2ft.colorLayers" | ||
|
||
UFO2FT_META_TABLE_KEY = PUBLIC_PREFIX + "openTypeMeta" | ||
# ufo2ft KernFeatureWriter default to "skip" mode (i.e. do not write features | ||
# if they are already present), while Glyphs.app always adds its automatic | ||
# kerning to any user written kern lookups. So we need to pass custom "append" | ||
# mode for the ufo2ft KernFeatureWriter whenever the GSFont contain a non-automatic | ||
# 'kern' feature. | ||
# See https://glyphsapp.com/tutorials/contextual-kerning | ||
|
||
DEFAULT_FEATURE_WRITERS = [ | ||
{"class": "KernFeatureWriter", "options": {"mode": "append"}}, | ||
{"class": "KernFeatureWriter"}, | ||
{ | ||
"module": "glyphsLib.featureWriters.markFeatureWriter", | ||
"class": "ContextualMarkFeatureWriter", | ||
"options": {"mode": "skip"}, | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
khaledhosny
Author
Collaborator
|
||
}, | ||
{"class": "GdefFeatureWriter"}, | ||
{"class": "CursFeatureWriter"}, | ||
] | ||
|
||
|
mode="skip" is already default so you don't need to override "options" here