helpers for formatting

This commit is contained in:
Taylor Wilsdon
2025-08-10 15:33:11 -04:00
parent e29ff043fd
commit 543f85ac1c
3 changed files with 58 additions and 18 deletions

View File

@@ -49,8 +49,8 @@ def build_text_style(
fields.append('fontSize')
if font_family is not None:
text_style['fontFamily'] = font_family
fields.append('fontFamily')
text_style['weightedFontFamily'] = {'fontFamily': font_family}
fields.append('weightedFontFamily')
return text_style, fields