Skip to content

Commit

Permalink
修复 width_style 命名调整
Browse files Browse the repository at this point in the history
  • Loading branch information
TakWolf committed Jul 2, 2024
1 parent 2ddd6cf commit d13d945
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/services/font_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from pathlib import Path

import unidata_blocks
from pixel_font_builder import FontBuilder, FontCollectionBuilder, WeightName, SerifStyle, SlantStyle, WidthMode, Glyph
from pixel_font_builder import FontBuilder, FontCollectionBuilder, WeightName, SerifStyle, SlantStyle, WidthStyle, Glyph
from pixel_font_builder.opentype import Flavor
from pixel_font_knife import mono_bitmap_util

Expand Down Expand Up @@ -292,7 +292,7 @@ def _create_builder(
builder.meta_info.weight_name = WeightName.REGULAR
builder.meta_info.serif_style = SerifStyle.SANS_SERIF
builder.meta_info.slant_style = SlantStyle.NORMAL
builder.meta_info.width_mode = WidthMode(width_mode.capitalize())
builder.meta_info.width_style = WidthStyle(width_mode.capitalize())
builder.meta_info.manufacturer = 'TakWolf'
builder.meta_info.designer = 'TakWolf'
builder.meta_info.description = 'Open source Pan-CJK pixel font.'
Expand Down

0 comments on commit d13d945

Please sign in to comment.