Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens committed Nov 20, 2023
1 parent 5b570bb commit fd0bad3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Lib/ufo2ft/featureWriters/baseFeatureWriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,7 @@ def _getAnchor(self, glyphName, anchorName, anchor=None):
glyph = source.font[glyphName]
for anchor in glyph.anchors:
if anchor.name == anchorName:
location = get_userspace_location(
designspace, source.location
)
location = get_userspace_location(designspace, source.location)
x_value.add_value(location, anchor.x)
y_value.add_value(location, anchor.y)
found = True
Expand All @@ -479,7 +477,9 @@ def _getAnchor(self, glyphName, anchorName, anchor=None):
if glyphName not in self.context.font:
return None
glyph = self.context.font[glyphName]
anchors = [anchor for anchor in glyph.anchors if anchor.name == anchorName]
anchors = [
anchor for anchor in glyph.anchors if anchor.name == anchorName
]
if not anchors:
return None
anchor = anchors[0]
Expand Down
3 changes: 0 additions & 3 deletions Lib/ufo2ft/featureWriters/kernFeatureWriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,13 +386,11 @@ def getKerningGroups(
self.context.side2Membership = side2Membership
return side1Groups, side2Groups


def getKerningPairs(
self,
side1Classes: Mapping[str, tuple[str, ...]],
side2Classes: Mapping[str, tuple[str, ...]],
) -> list[KerningPair]:

if self.context.isVariable:
return self.getVariableKerningPairs(side1Classes, side2Classes)

Expand Down Expand Up @@ -1014,7 +1012,6 @@ def addClassDefinition(
classes[group] = classDefs[className] = classDef



def log_redefined_group(
side: str, name: str, group: tuple[str, ...], font: Any, members: set[str]
) -> None:
Expand Down

0 comments on commit fd0bad3

Please sign in to comment.