From 4a339862d632ff693c67824fa3e3732413628bf0 Mon Sep 17 00:00:00 2001 From: AlphaKeks <85143381+AlphaKeks@users.noreply.github.com> Date: Fri, 10 Nov 2023 19:15:25 +0100 Subject: [PATCH] fix: add missing `fontdb` feature flag (#169) This solves an issue with the NixOS build where fonts are required at runtime for inlyne to start. With the `fontconfig` feature flag inlyne will use font-config to determine a font. Partially resolves #164 --- Cargo.lock | 1 + Cargo.toml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 43b6a5d9..dd4f679e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1811,6 +1811,7 @@ dependencies = [ "env_logger", "filetime", "font-kit", + "fontdb", "html5ever", "image", "insta", diff --git a/Cargo.toml b/Cargo.toml index 7ac2b690..7acfce08 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -43,6 +43,9 @@ pollster = "0.3.0" smart-debug = "0.0.2" syntect = "5.1.0" +# Required for WGPU to work properly with Vulkan +fontdb = { version = "0.13.1", features = ["fontconfig"] } + [dependencies.two-face] version = "0.1.1" default-features = false