Skip to content

Commit

Permalink
Make math.bold compatible with Greek digamma (typst#5316)
Browse files Browse the repository at this point in the history
  • Loading branch information
MDLC01 authored Oct 30, 2024
1 parent 902088a commit 070e314
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/typst-layout/src/math/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
'ϴ' => ['𝚹', '𝛳', '𝜭', '𝝧', '𝞡', 'ϴ'],
'∇' => ['𝛁', '𝛻', '𝜵', '𝝯', '𝞩', '∇'],
Expand Down

0 comments on commit 070e314

Please sign in to comment.