From d507808e4028f5e42743131c129da94d086fde8a Mon Sep 17 00:00:00 2001 From: LAGonauta Date: Fri, 17 Jun 2022 18:37:49 -0300 Subject: [PATCH] Automatically set PANGOCAIRO_BACKEND to fontconfig on win32 --- main/src/main.vala | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main/src/main.vala b/main/src/main.vala index afa1f52b..3cbd5def 100644 --- a/main/src/main.vala +++ b/main/src/main.vala @@ -9,6 +9,12 @@ namespace Dino { void main(string[] args) { try{ +#if _WIN32 + var pangocairoResult = Environment.set_variable("PANGOCAIRO_BACKEND", "fontconfig", false); + if (!pangocairoResult) { + warning("Unable to set PANGOCAIRO_BACKEND environment variable to fontconfig"); + } +#endif string? exec_path = args.length > 0 ? args[0] : null; SearchPathGenerator search_path_generator = new SearchPathGenerator(exec_path); Intl.textdomain(GETTEXT_PACKAGE);