diff options
| author | Malo <57839069+MDLC01@users.noreply.github.com> | 2024-10-30 18:31:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-30 17:31:03 +0000 |
| commit | 070e3144b33e9a9e9839c138df2b0a13dde7abc7 (patch) | |
| tree | 1c67eb64bf63bc0d6afd4f494d57991203a7ade1 /crates/typst-layout/src/math | |
| parent | 902088a237db5e9712f9feec6092472570e84d21 (diff) | |
Make `math.bold` compatible with Greek digamma (#5316)
Diffstat (limited to 'crates/typst-layout/src/math')
| -rw-r--r-- | crates/typst-layout/src/math/text.rs | 7 |
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 { 'ϴ' => ['𝚹', '𝛳', '𝜭', '𝝧', '𝞡', 'ϴ'], '∇' => ['𝛁', '𝛻', '𝜵', '𝝯', '𝞩', '∇'], |
