Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Commit

Permalink
代码整理
Browse files Browse the repository at this point in the history
  • Loading branch information
TakWolf committed Jun 8, 2023
1 parent 2c1f35a commit 7186340
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/nico_font_tool/opentype.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,7 @@ def rasterize_glyphs_in_order(self) -> Iterator[tuple[str, list[list[int]], int]
continue

glyph_image = Image.new('RGBA', (adjusted_advance_width, self.adjusted_line_height), (0, 0, 0, 0))
ImageDraw.Draw(glyph_image).text(
xy=(self.glyph_offset_x, self.glyph_offset_y),
text=chr(code_point),
fill=(0, 0, 0),
font=self.image_font,
)
ImageDraw.Draw(glyph_image).text((self.glyph_offset_x, self.glyph_offset_y), chr(code_point), fill=(0, 0, 0, 255), font=self.image_font)
glyph_data = []
for y in range(self.adjusted_line_height):
glyph_data_row = []
Expand Down

0 comments on commit 7186340

Please sign in to comment.