From 070e3144b33e9a9e9839c138df2b0a13dde7abc7 Mon Sep 17 00:00:00 2001 From: Malo <57839069+MDLC01@users.noreply.github.com> Date: Wed, 30 Oct 2024 18:31:03 +0100 Subject: [PATCH] Make `math.bold` compatible with Greek digamma (#5316) --- crates/typst-layout/src/math/text.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/typst-layout/src/math/text.rs b/crates/typst-layout/src/math/text.rs index 86d871a2a..3b923c5b0 100644 --- a/crates/typst-layout/src/math/text.rs +++ b/crates/typst-layout/src/math/text.rs @@ -319,6 +319,13 @@ fn greek_exception( italic: bool, ) -> Option { use MathVariant::*; + if c == 'Ϝ' && variant == Serif && bold { + return Some('𝟊'); + } + if c == 'ϝ' && variant == Serif && bold { + return Some('𝟋'); + } + let list = match c { 'ϴ' => ['𝚹', '𝛳', '𝜭', '𝝧', '𝞡', 'ϴ'], '∇' => ['𝛁', '𝛻', '𝜵', '𝝯', '𝞩', '∇'],