mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Make math.italic
compatible with ħ (#5492)
This commit is contained in:
parent
3ab131c22c
commit
055263ee9f
@ -150,8 +150,8 @@ fn styled_char(styles: StyleChain, c: char, auto_italic: bool) -> char {
|
|||||||
auto_italic
|
auto_italic
|
||||||
&& matches!(
|
&& matches!(
|
||||||
c,
|
c,
|
||||||
'a'..='z' | 'ı' | 'ȷ' | 'A'..='Z' | 'α'..='ω' |
|
'a'..='z' | 'ħ' | 'ı' | 'ȷ' | 'A'..='Z' |
|
||||||
'∂' | 'ϵ' | 'ϑ' | 'ϰ' | 'ϕ' | 'ϱ' | 'ϖ'
|
'α'..='ω' | '∂' | 'ϵ' | 'ϑ' | 'ϰ' | 'ϕ' | 'ϱ' | 'ϖ'
|
||||||
)
|
)
|
||||||
&& matches!(variant, Sans | Serif),
|
&& matches!(variant, Sans | Serif),
|
||||||
);
|
);
|
||||||
@ -306,6 +306,7 @@ fn latin_exception(
|
|||||||
('e', Cal, false, _) => 'ℯ',
|
('e', Cal, false, _) => 'ℯ',
|
||||||
('g', Cal, false, _) => 'ℊ',
|
('g', Cal, false, _) => 'ℊ',
|
||||||
('o', Cal, false, _) => 'ℴ',
|
('o', Cal, false, _) => 'ℴ',
|
||||||
|
('ħ', Serif, .., true) => 'ℏ',
|
||||||
('ı', Serif, .., true) => '𝚤',
|
('ı', Serif, .., true) => '𝚤',
|
||||||
('ȷ', Serif, .., true) => '𝚥',
|
('ȷ', Serif, .., true) => '𝚥',
|
||||||
_ => return None,
|
_ => return None,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user