From a44757f3253189e298626519119464a8bb556622 Mon Sep 17 00:00:00 2001 From: cajun <12363371+CajunAvenger@users.noreply.github.com> Date: Wed, 6 Mar 2024 00:33:15 -0600 Subject: [PATCH] fix issue with custom italic font --- data/magic-m15-altered.mse-style/style | 3 ++- data/magic.mse-game/script | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/data/magic-m15-altered.mse-style/style b/data/magic-m15-altered.mse-style/style index 20edf4117..b0ff70e7e 100644 --- a/data/magic-m15-altered.mse-style/style +++ b/data/magic-m15-altered.mse-style/style @@ -350,7 +350,8 @@ init script: } body_font_italic := { swap_font_italic( - src: styling.custom_body_font + src: styling.custom_body_font, + font_name: "MPlantin-Italic" ) } diff --git a/data/magic.mse-game/script b/data/magic.mse-game/script index 13cbe542e..449168f45 100644 --- a/data/magic.mse-game/script +++ b/data/magic.mse-game/script @@ -2193,10 +2193,9 @@ swap_font_vertical := { vertical }@(vertical:0, src:"") swap_font_italic := { - font_name := "MPlantin-Italic" if swap_font() then ( - test := pop_font_italic(styling.custom_body_font) - test2 := pop_font_name(styling.custom_body_font) + test := pop_font_italic(src) + test2 := pop_font_name(src) if test != "" then font_name := test else if test2 != "" then font_name := "" )