format
This commit is contained in:
parent
4b3a6e84ac
commit
2d67e31bf1
1 changed files with 0 additions and 4 deletions
|
|
@ -143,25 +143,21 @@ fn shape_fallback(
|
||||||
let attrs = attrs_list.get_span(start_run);
|
let attrs = attrs_list.get_span(start_run);
|
||||||
|
|
||||||
let mut features = Vec::new();
|
let mut features = Vec::new();
|
||||||
|
|
||||||
features.push(rustybuzz::Feature::new(
|
features.push(rustybuzz::Feature::new(
|
||||||
rustybuzz::ttf_parser::Tag::from_bytes(b"kern"),
|
rustybuzz::ttf_parser::Tag::from_bytes(b"kern"),
|
||||||
if attrs.font_features.kerning { 1 } else { 0 },
|
if attrs.font_features.kerning { 1 } else { 0 },
|
||||||
0..usize::MAX,
|
0..usize::MAX,
|
||||||
));
|
));
|
||||||
|
|
||||||
features.push(rustybuzz::Feature::new(
|
features.push(rustybuzz::Feature::new(
|
||||||
rustybuzz::ttf_parser::Tag::from_bytes(b"liga"),
|
rustybuzz::ttf_parser::Tag::from_bytes(b"liga"),
|
||||||
if attrs.font_features.standard_ligatures { 1 } else { 0 },
|
if attrs.font_features.standard_ligatures { 1 } else { 0 },
|
||||||
0..usize::MAX,
|
0..usize::MAX,
|
||||||
));
|
));
|
||||||
|
|
||||||
features.push(rustybuzz::Feature::new(
|
features.push(rustybuzz::Feature::new(
|
||||||
rustybuzz::ttf_parser::Tag::from_bytes(b"clig"),
|
rustybuzz::ttf_parser::Tag::from_bytes(b"clig"),
|
||||||
if attrs.font_features.contextual_ligatures { 1 } else { 0 },
|
if attrs.font_features.contextual_ligatures { 1 } else { 0 },
|
||||||
0..usize::MAX,
|
0..usize::MAX,
|
||||||
));
|
));
|
||||||
|
|
||||||
features.push(rustybuzz::Feature::new(
|
features.push(rustybuzz::Feature::new(
|
||||||
rustybuzz::ttf_parser::Tag::from_bytes(b"dlig"),
|
rustybuzz::ttf_parser::Tag::from_bytes(b"dlig"),
|
||||||
if attrs.font_features.discretionary_ligatures { 1 } else { 0 },
|
if attrs.font_features.discretionary_ligatures { 1 } else { 0 },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue