Deluge
(Deluge)
July 3, 2022, 11:26am
1
I have around 300 glyphs that seems to have gotten their automatic alignment disabled at one point. All of them are simply glyphs containing one component that is currently set to not align automatically.
Is there some sort of script that I could use on these glyphs to have them all modified to align automatically.
It would same me a lot of work if I was able to avoid fixing them manually.
etunni
(etunni)
July 3, 2022, 1:53pm
2
You can run a @mekkablue script that you can download from plugin manager.
1 Like
SCarewe
(Sebastian Carewe)
July 3, 2022, 7:28pm
3
You can also run either my script (in the eweracs scripts from the plugin manager) that toggles automatic alignment on/off in all masters:
# MenuTitle: Toggle Automatic Alignment in All Masters
# -*- coding: utf-8 -*-
__doc__ = """
Toggles automatic alignment for the selected component in all masters.
"""
class ToggleAutomaticAlignmentAllMasters:
def __init__(self):
self.layer = Layer
if self.layer is None:
return
for i, reference in enumerate(self.layer.components):
if reference.selected:
reference.automaticAlignment = not reference.automaticAlignment
for layer in self.layer.parent.layers:
This file has been truncated. show original
or which automatically aligns all components in all masters:
# MenuTitle: Automatically Align in All Masters
# -*- coding: utf-8 -*-
__doc__ = """
Automatically aligns all components in all masters in the selected glyphs.
"""
class AutomaticallyAlignAllMasters:
def __init__(self):
self.font = Font
if self.font is None:
Message("No font selected", "Select a font project!")
return
for selected in self.font.selectedLayers:
glyph = selected.parent
for layer in glyph.layers:
for component in layer.components:
This file has been truncated. show original
Deluge
(Deluge)
July 5, 2022, 9:02am
4
Thanks, that worked perfectly.