Format code
This commit is contained in:
parent
9c16ca004a
commit
d15011fba5
2 changed files with 5 additions and 6 deletions
|
|
@ -121,13 +121,12 @@ fn set_buffer_text(buffer: &mut BorrowedWithFontSystem<'_, Buffer>) {
|
||||||
"生活,삶,जिंदगी 😀\n",
|
"生活,삶,जिंदगी 😀\n",
|
||||||
attrs.clone().color(Color::rgb(0xFF, 0x00, 0x00)),
|
attrs.clone().color(Color::rgb(0xFF, 0x00, 0x00)),
|
||||||
),
|
),
|
||||||
(
|
("Hinting enabled, ", attrs.clone()),
|
||||||
"Hinting enabled, ",
|
|
||||||
attrs.clone()
|
|
||||||
),
|
|
||||||
(
|
(
|
||||||
"Hinting disabled\n",
|
"Hinting disabled\n",
|
||||||
attrs.clone().cache_key_flags(CacheKeyFlags::DISABLE_HINTING),
|
attrs
|
||||||
|
.clone()
|
||||||
|
.cache_key_flags(CacheKeyFlags::DISABLE_HINTING),
|
||||||
),
|
),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,7 @@ fn swash_outline_commands(
|
||||||
let mut outline = scaler
|
let mut outline = scaler
|
||||||
.scale_outline(cache_key.glyph_id)
|
.scale_outline(cache_key.glyph_id)
|
||||||
.or_else(|| scaler.scale_color_outline(cache_key.glyph_id))?;
|
.or_else(|| scaler.scale_color_outline(cache_key.glyph_id))?;
|
||||||
|
|
||||||
if cache_key.flags.contains(CacheKeyFlags::FAKE_ITALIC) {
|
if cache_key.flags.contains(CacheKeyFlags::FAKE_ITALIC) {
|
||||||
outline.transform(&Transform::skew(
|
outline.transform(&Transform::skew(
|
||||||
Angle::from_degrees(14.0),
|
Angle::from_degrees(14.0),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue