Skip to content

Commit

Permalink
Use Helvetica instead of Segoe UI Emoji for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
aussig committed Jun 8, 2024
1 parent 11a0786 commit d69c034
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 15 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## v4.1.0-xx - xxxx-xx-xx

### Bug Fixes:

* The new font for the Discord preview wasn't working very well for Linux, so it's now only used on Windows.


## v4.0.0 - 2024-06-07
Expand Down
38 changes: 23 additions & 15 deletions bgstally/constants.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
from enum import Enum


Expand Down Expand Up @@ -78,18 +79,25 @@ class CmdrInteractionReason(int, Enum):
FRIEND_ADDED = 6


DATETIME_FORMAT_JOURNAL = "%Y-%m-%dT%H:%M:%SZ"
FILE_SUFFIX = ".json"
FOLDER_ASSETS = "assets"
FOLDER_BACKUPS = "backups"
FOLDER_DATA = "data"
FOLDER_OTHER_DATA = "otherdata"
FOLDER_UPDATES = "updates"
FONT_HEADING_1:tuple = ("Helvetica", 13, "bold")
FONT_HEADING_2:tuple = ("Helvetica", 11, "bold")
FONT_SMALL:tuple = ("Helvetica", 9, "normal")
FONT_TEXT:tuple = ("Segoe UI Emoji", 11, "normal")
FONT_TEXT_BOLD:tuple = ("Segoe UI Emoji", 11, "bold")
FONT_TEXT_UNDERLINE:tuple = ("Segoe UI Emoji", 11, "underline")
FONT_TEXT_BOLD_UNDERLINE:tuple = ("Segoe UI Emoji", 11, "bold underline")
COLOUR_HEADING_1 = "#A300A3"
DATETIME_FORMAT_JOURNAL: str = "%Y-%m-%dT%H:%M:%SZ"
FILE_SUFFIX: str = ".json"
FOLDER_ASSETS: str = "assets"
FOLDER_BACKUPS: str = "backups"
FOLDER_DATA: str = "data"
FOLDER_OTHER_DATA: str = "otherdata"
FOLDER_UPDATES: str = "updates"
FONT_HEADING_1: tuple = ("Helvetica", 13, "bold")
FONT_HEADING_2: tuple = ("Helvetica", 11, "bold")
FONT_SMALL: tuple = ("Helvetica", 9, "normal")
if sys.platform == 'win32':
FONT_TEXT: tuple = ("Segoe UI Emoji", 11, "normal")
FONT_TEXT_BOLD: tuple = ("Segoe UI Emoji", 11, "bold")
FONT_TEXT_UNDERLINE: tuple = ("Segoe UI Emoji", 11, "underline")
FONT_TEXT_BOLD_UNDERLINE: tuple = ("Segoe UI Emoji", 11, "bold underline")
else:
FONT_TEXT: tuple = ("Helvetica", 11, "normal")
FONT_TEXT_BOLD: tuple = ("Helvetica", 11, "bold")
FONT_TEXT_UNDERLINE: tuple = ("Helvetica", 11, "underline")
FONT_TEXT_BOLD_UNDERLINE: tuple = ("Helvetica", 11, "bold underline")

COLOUR_HEADING_1: str = "#A300A3"

0 comments on commit d69c034

Please sign in to comment.