Format code

This commit is contained in:
Jeremy Soller 2025-07-02 11:02:56 -06:00
parent 9c16ca004a
commit d15011fba5
No known key found for this signature in database
GPG key ID: 670FDFB5428E05CA
2 changed files with 5 additions and 6 deletions

View file

@ -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),
), ),
]; ];

View file

@ -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),