Skip to content

Commit

Permalink
distracting and unrelated black changes
Browse files Browse the repository at this point in the history
  • Loading branch information
anthrotype committed Mar 28, 2023
1 parent 04c284d commit 10671af
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions src/nanoemoji/bitmap_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ def _cbdt_bitmapdata_offsets(
def _cbdt_bitmap_data(
config: FontConfig, metrics: BitmapMetrics, image_data: PNG
) -> CbdtBitmapFormat17:

bitmap_data = CbdtBitmapFormat17(b"", None)
bitmap_data.metrics = SmallGlyphMetrics()
bitmap_data.metrics.width, bitmap_data.metrics.height = image_data.size
Expand All @@ -171,7 +170,6 @@ def make_sbix_table(
ttfont: ttLib.TTFont,
color_glyphs: Sequence[ColorGlyph],
):

sbix = ttLib.newTable("sbix")
ttfont[sbix.tableTag] = sbix

Expand Down
1 change: 0 additions & 1 deletion src/nanoemoji/color_glyph.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,6 @@ def _painted_layers(
picosvg: SVG,
glyph_width: int,
) -> Tuple[Paint, ...]:

defs_seen = False
layers = []

Expand Down
1 change: 0 additions & 1 deletion src/nanoemoji/nanoemoji.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,6 @@ def write_compressed_bitmap_builds(


def write_fea_build(nw: NinjaWriter, font_config: FontConfig):

nw.build(
rel_build(_fea_file(font_config)),
"write_fea",
Expand Down
1 change: 0 additions & 1 deletion src/nanoemoji/png.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@


class PNG(bytes):

# The first eight bytes of a PNG file always contain the following (decimal) values:
# 137 80 78 71 13 10 26 10
# https://www.w3.org/TR/PNG-Structure.html
Expand Down
2 changes: 1 addition & 1 deletion src/nanoemoji/svg_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def curveTo(self, *points):

def qCurveTo(self, *points):
# handle TrueType quadratic splines with implicit on-curve mid-points
for (control_pt, end_pt) in pathops.decompose_quadratic_segment(points):
for control_pt, end_pt in pathops.decompose_quadratic_segment(points):
self.path.Q(*control_pt, *end_pt)

def closePath(self):
Expand Down

0 comments on commit 10671af

Please sign in to comment.