Make math.bold compatible with Greek digamma (#5316)

This commit is contained in:
Malo 2024-10-30 18:31:03 +01:00 committed by GitHub
parent 902088a237
commit 070e3144b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {
'ϴ' => ['𝚹', '𝛳', '𝜭', '𝝧', '𝞡', 'ϴ'],
'∇' => ['𝛁', '𝛻', '𝜵', '𝝯', '𝞩', '∇'],