Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
45f273b
commit 4aacb97
Showing
12 changed files
with
48 additions
and
123 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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
#MenuTitle: Decompose all corner components | ||
# -*- coding: utf-8 -*- | ||
# by Pedro Arilla | ||
from __future__ import division, print_function, unicode_literals | ||
__doc__=""" | ||
Decomposes all corner components in selected glyphs. | ||
""" | ||
import GlyphsApp | ||
import time | ||
import GlyphsApp, time | ||
Glyphs.clearLog() | ||
print "Decompose all corner components @ " + time.strftime("%H:%M:%S") | ||
print("Decompose all corner components @ " + time.strftime("%H:%M:%S")) | ||
|
||
thisFont = Glyphs.font | ||
for thisLayer in thisFont.selectedLayers: | ||
thisLayer.decomposeCorners() | ||
|
||
print "All corner components decomposed." | ||
print("All corner components decomposed.") |
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
#MenuTitle: Decompose all serif components | ||
# -*- coding: utf-8 -*- | ||
# by Pedro Arilla | ||
from __future__ import division, print_function, unicode_literals | ||
__doc__=""" | ||
Decomposes all serif components in selected glyphs. | ||
""" | ||
import GlyphsApp | ||
import time | ||
import GlyphsApp, time | ||
Glyphs.clearLog() | ||
print "Decompose all serif components @ " + time.strftime("%H:%M:%S") | ||
print("Decompose all serif components @ " + time.strftime("%H:%M:%S")) | ||
|
||
thisFont = Glyphs.font | ||
for thisLayer in thisFont.selectedLayers: | ||
for i in range(len(thisLayer.components))[::-1]: | ||
if thisLayer.components[i].componentName.startswith("Serif"): | ||
thisLayer.components[i].decompose() | ||
|
||
print "All serif components decomposed." | ||
print("All serif components decomposed.") |
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
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
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
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
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