Skip to content

Commit

Permalink
属性名称调整
Browse files Browse the repository at this point in the history
  • Loading branch information
TakWolf committed Dec 25, 2023
1 parent b8f8abb commit f9b8409
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pixel_font_builder/bdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def _create_glyph(
code_point=code_point,
scalable_width=(scalable_width_x, 0),
device_width=(glyph.advance_width, 0),
bounding_box_size=glyph.size,
bounding_box_size=glyph.dimensions,
bounding_box_offset=glyph.horizontal_origin,
bitmap=glyph.data,
)
Expand Down
2 changes: 1 addition & 1 deletion src/pixel_font_builder/glyph.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def height(self) -> int:
return len(self.data)

@property
def size(self) -> tuple[int, int]:
def dimensions(self) -> tuple[int, int]:
return self.width, self.height

def calculate_top_side_bearing(self) -> int:
Expand Down

0 comments on commit f9b8409

Please sign in to comment.