Skip to content

Commit

Permalink
make font configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
tobru committed May 31, 2024
1 parent a4c68a5 commit 339a47f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion contactform/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
Font(family="IBM Plex Sans", style="Bold"),
Font(family="Source Code Pro", style="Bold"),
],
default_font=Font(family="Source Code Pro", style="Bold"),
default_font=Font(family=config.LABEL_FONT_FAMILY, style=config.LABEL_FONT_STYLE),
),
website=WebsiteConfiguration,
)
Expand Down
2 changes: 2 additions & 0 deletions contactform/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ def __init__(self):
self.CONFIG_FILE_PATH = self.get_env_var("CONFIG_FILE_PATH", "config.json")
self.BASIC_AUTH_USERNAME = self.get_env_var("BASIC_AUTH_USERNAME")
self.BASIC_AUTH_PASSWORD = self.get_env_var("BASIC_AUTH_PASSWORD")
self.LABEL_FONT_FAMILY = self.get_env_var("LABEL_FONT_FAMILY","DejaVu Sans")
self.LABEL_FONT_STYLE = self.get_env_var("LABEL_FONT_STYLE","Book")
self.TAG_ID = None
self.CAMPAIGN_ID = None
self.SOURCE_ID = None
Expand Down

0 comments on commit 339a47f

Please sign in to comment.