Add set_hinting method to Buffer

This commit is contained in:
Héctor Ramón Jiménez 2025-11-27 23:18:30 +01:00 committed by Jeremy Soller
parent d779057d9c
commit a07a619054
14 changed files with 54 additions and 48 deletions

View file

@ -1,8 +1,8 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
use cosmic_text::{
Action, Attrs, Buffer, Edit, Family, FontSystem, Hinting, Metrics, Motion, SwashCache,
SyntaxEditor, SyntaxSystem,
Action, Attrs, Buffer, Edit, Family, FontSystem, Metrics, Motion, SwashCache, SyntaxEditor,
SyntaxSystem,
};
use std::{env, fs, num::NonZeroU32, rc::Rc, slice};
use tiny_skia::{Paint, PixmapMut, Rect, Transform};
@ -45,7 +45,6 @@ fn main() {
Buffer::new(
&mut font_system,
font_sizes[font_size_i].scale(display_scale),
Hinting::Disabled,
),
&syntax_system,
"base16-eighties.dark",