summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalo <57839069+MDLC01@users.noreply.github.com>2024-10-30 18:31:03 +0100
committerGitHub <noreply@github.com>2024-10-30 17:31:03 +0000
commit070e3144b33e9a9e9839c138df2b0a13dde7abc7 (patch)
tree1c67eb64bf63bc0d6afd4f494d57991203a7ade1
parent902088a237db5e9712f9feec6092472570e84d21 (diff)
Make `math.bold` compatible with Greek digamma (#5316)
-rw-r--r--crates/typst-layout/src/math/text.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/crates/typst-layout/src/math/text.rs b/crates/typst-layout/src/math/text.rs
index 86d871a2..3b923c5b 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<char> {
use MathVariant::*;
+ if c == 'Ϝ' && variant == Serif && bold {
+ return Some('𝟊');
+ }
+ if c == 'ϝ' && variant == Serif && bold {
+ return Some('𝟋');
+ }
+
let list = match c {
'ϴ' => ['𝚹', '𝛳', '𝜭', '𝝧', '𝞡', 'ϴ'],
'∇' => ['𝛁', '𝛻', '𝜵', '𝝯', '𝞩', '∇'],