mirror of
https://github.com/typst/typst
synced 2025-05-14 17:15:28 +08:00
Fix historical ligatures for texts (#4603)
This commit is contained in:
parent
6db95c633f
commit
33f13d7881
@ -1179,7 +1179,7 @@ pub(crate) fn features(styles: StyleChain) -> Vec<Feature> {
|
||||
}
|
||||
|
||||
if TextElem::historical_ligatures_in(styles) {
|
||||
feat(b"hilg", 1);
|
||||
feat(b"hlig", 1);
|
||||
}
|
||||
|
||||
match TextElem::number_type_in(styles) {
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 345 B After Width: | Height: | Size: 1.1 KiB |
@ -12,8 +12,12 @@ a vs #text(alternates: true)[a] \
|
||||
ß vs #text(stylistic-set: 5)[ß]
|
||||
|
||||
--- text-ligatures ---
|
||||
// Test ligatures.
|
||||
fi vs. #text(ligatures: false)[No fi]
|
||||
// Test text turning off (standard) ligatures of the font.
|
||||
#text(ligatures: false)[fi Qu] vs fi Qu \
|
||||
// Test text turning on historical ligatures of the font.
|
||||
abstract vs #text(historical-ligatures: true)[abstract] \
|
||||
// Test text turning on discretionary ligatures of the font.
|
||||
waltz vs #text(discretionary-ligatures: true)[waltz]
|
||||
|
||||
--- text-number-type ---
|
||||
// Test number type.
|
||||
@ -34,7 +38,7 @@ fi vs. #text(ligatures: false)[No fi]
|
||||
1/2 vs. #text(fractions: true)[1/2]
|
||||
|
||||
--- text-features ---
|
||||
// Test raw features.
|
||||
// Test raw features array or dictionary.
|
||||
#text(features: ("smcp",))[Smcp] \
|
||||
fi vs. #text(features: (liga: 0))[No fi]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user