Skip to content

Commit

Permalink
代码整理
Browse files Browse the repository at this point in the history
  • Loading branch information
TakWolf committed Dec 17, 2024
1 parent 04523cf commit 3a672b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/services/font_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ def _get_glyph_pool(self, width_mode: WidthMode) -> dict[Path, Glyph]:
return glyph_pool

def _create_builder(self, width_mode: WidthMode, language_flavor: LanguageFlavor, is_collection: bool) -> FontBuilder:
glyph_pool = self._get_glyph_pool(width_mode)
layout_param = self.font_config.layout_params[width_mode]

builder = FontBuilder()
Expand Down Expand Up @@ -141,6 +140,7 @@ def _create_builder(self, width_mode: WidthMode, language_flavor: LanguageFlavor
builder.character_mapping.update(character_mapping)

glyph_sequence = self._get_glyph_sequence(width_mode, None if is_collection else language_flavor)
glyph_pool = self._get_glyph_pool(width_mode)
for glyph_file in glyph_sequence:
if glyph_file.file_path in glyph_pool:
glyph = glyph_pool[glyph_file.file_path]
Expand Down

0 comments on commit 3a672b6

Please sign in to comment.