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