Merge pull request #32106 from ruthra-kumar/allow_custom_fonts_in_wkhtmltopdf
fix: allow custom fonts in wkhtmltopdf
This commit is contained in:
commit
7d5e338e55
1 changed files with 5 additions and 1 deletions
|
|
@ -621,7 +621,11 @@ def get_print_style(
|
|||
def get_font(
|
||||
print_settings: "PrintSettings", print_format: Optional["PrintFormat"] = None, for_legacy=False
|
||||
) -> str:
|
||||
default = "var(--font-stack)"
|
||||
default = """
|
||||
"InterVariable", "Inter", "saudiriyal", "-apple-system", "BlinkMacSystemFont",
|
||||
"Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
|
||||
"Helvetica Neue", sans-serif;
|
||||
"""
|
||||
if for_legacy:
|
||||
return default
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue