fix: use system font for printing

This way, content from Text Editor will have the same style as the rest of the print.
This commit is contained in:
barredterra 2023-12-25 18:28:18 +01:00
parent 77f04c9fc4
commit ad93afcd4c

View file

@ -582,7 +582,7 @@ def get_print_style(
def get_font(
print_settings: "PrintSettings", print_format: Optional["PrintFormat"] = None, for_legacy=False
) -> str:
default = 'Inter, "Helvetica Neue", Helvetica, Arial, "Open Sans", sans-serif'
default = "var(--font-stack)"
if for_legacy:
return default