Draft metrics hinting support
This commit is contained in:
parent
9339446cfa
commit
48eda6bd7d
15 changed files with 41 additions and 22 deletions
|
|
@ -85,7 +85,7 @@ impl DrawTestCfg {
|
|||
let mut font_system = FontSystem::new_with_locale_and_db("En-US".into(), font_db);
|
||||
let mut swash_cache = SwashCache::new();
|
||||
let metrics = Metrics::new(self.font_size, self.line_height);
|
||||
let mut buffer = Buffer::new(&mut font_system, metrics);
|
||||
let mut buffer = Buffer::new(&mut font_system, metrics, false);
|
||||
let mut buffer = buffer.borrow_with(&mut font_system);
|
||||
let margins = 5;
|
||||
buffer.set_size(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue