fix issue with custom italic font

This commit is contained in:
cajun
2024-03-06 00:33:15 -06:00
parent 54e65bd7b4
commit a44757f325
2 changed files with 4 additions and 4 deletions

View File

@@ -350,7 +350,8 @@ init script:
} }
body_font_italic := { body_font_italic := {
swap_font_italic( swap_font_italic(
src: styling.custom_body_font src: styling.custom_body_font,
font_name: "MPlantin-Italic"
) )
} }

View File

@@ -2193,10 +2193,9 @@ swap_font_vertical := {
vertical vertical
}@(vertical:0, src:"") }@(vertical:0, src:"")
swap_font_italic := { swap_font_italic := {
font_name := "MPlantin-Italic"
if swap_font() then ( if swap_font() then (
test := pop_font_italic(styling.custom_body_font) test := pop_font_italic(src)
test2 := pop_font_name(styling.custom_body_font) test2 := pop_font_name(src)
if test != "" then font_name := test if test != "" then font_name := test
else if test2 != "" then font_name := "" else if test2 != "" then font_name := ""
) )