Skip to content
This repository has been archived by the owner on Jul 6, 2024. It is now read-only.

Commit

Permalink
fix: フォントサイズも相対的な値を使えるよう修正
Browse files Browse the repository at this point in the history
  • Loading branch information
PigeonsHouse committed Jan 7, 2024
1 parent 4ea1f27 commit d2c5928
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/style/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,16 @@ def __init__(
self.background_color = Color(background_color)
case "txt":
if self.font_size is not None:
parent_font_size = (
parent_param.font_size.value
if parent_param is not None
and parent_param.font_size is not None
and parent_param.font_size.has_specific_value()
else None
)
self.font_size = graphic_calculator(
self.font_size, parent_font_size
)
text_lines = source_value.split(r"\n")
self.source_width = graphic_parser(
"{}px".format(
Expand Down

0 comments on commit d2c5928

Please sign in to comment.