Skip to content

Commit

Permalink
some changes suggested by @belluzj
Browse files Browse the repository at this point in the history
  • Loading branch information
schriftgestalt committed Jul 4, 2023
1 parent c75966e commit c004fbb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion Lib/glyphsLib/builder/builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,6 @@ def _fake_designspace(self, ufos):
from .masters import to_glyphs_master_attributes
from .names import to_glyphs_family_names, to_glyphs_master_names
from .paths import to_glyphs_paths
from .sources import _to_glyphs_source
from .user_data import (
to_glyphs_family_user_data_from_designspace,
to_glyphs_family_user_data_from_ufo,
Expand Down
2 changes: 1 addition & 1 deletion Lib/glyphsLib/builder/masters.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def to_ufo_master_attributes(self, ufo, master):
note = userData.get(UFO_NOTE_KEY)
if note is not None:
ufo.info.note = note
delf(userData[UFO_NOTE_KEY])
del(userData[UFO_NOTE_KEY])
# All of this will go into the designspace as well
# "Native" designspace fonts will only have the designspace info
if master.font.formatVersion >= 3:
Expand Down
6 changes: 3 additions & 3 deletions Lib/glyphsLib/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2737,7 +2737,7 @@ def applyTransform(self, transformationMatrix):
def draw(self, pen: AbstractPen) -> None:
"""Draws contour with the given pen."""
pointPen = PointToSegmentPen(pen)
frawPoints(pointPen)
self.drawPoints(pointPen)

def drawPoints(self, pointPen: AbstractPointPen) -> None:
"""Draws points of contour with the given point pen."""
Expand Down Expand Up @@ -4122,7 +4122,7 @@ class LayerComponentsProxy(LayerShapesProxy):


class GSLayer(GSBase):
def _serialize_attributes_to_plist(self):
def _get_plist_attributes(self):
attributes = dict(self.attributes)
font = self.parent.parent
if LAYER_ATTRIBUTE_AXIS_RULES in self.attributes:
Expand Down Expand Up @@ -4150,7 +4150,7 @@ def _serialize_to_plist(self, writer):
if self.layerId != self.associatedMasterId:
writer.writeObjectKeyValue(self, "associatedMasterId")
if writer.formatVersion > 2:
attributes = self._serialize_attributes_to_plist()
attributes = self._get_plist_attributes()
if attributes:
writer.writeKeyValue("attr", attributes)
writer.writeObjectKeyValue(self, "background", self._background is not None)
Expand Down

0 comments on commit c004fbb

Please sign in to comment.