Skip to content

Commit 5154bd2

Browse files
committed
fix --font, default should not override specified font
1 parent 07cd5d0 commit 5154bd2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pcbasic/data/fonts/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
def read_fonts(codepage_dict, font_families):
3535
"""Load font typefaces."""
3636
# default font is fallback
37-
font_families = list(font_families) + [_DEFAULT_NAME]
37+
font_families = (_DEFAULT_NAME,) + tuple(font_families)
3838
# load the graphics fonts, including the 8-pixel RAM font
3939
# use set() for speed - lookup is O(1) rather than O(n) for list
4040
unicode_needed = set(itervalues(codepage_dict))

0 commit comments

Comments
 (0)