Add alignment parameter to set_text (#419)
* add alignment parameter to set_text * Fix doc comment
This commit is contained in:
parent
750e1a4dd1
commit
3c1f6c9e8a
10 changed files with 30 additions and 11 deletions
|
|
@ -92,7 +92,7 @@ impl DrawTestCfg {
|
|||
Some((self.canvas_width - margins * 2) as f32),
|
||||
Some((self.canvas_height - margins * 2) as f32),
|
||||
);
|
||||
buffer.set_text(&self.text, &self.font.as_attrs(), Shaping::Advanced);
|
||||
buffer.set_text(&self.text, &self.font.as_attrs(), Shaping::Advanced, None);
|
||||
buffer.shape_until_scroll(true);
|
||||
|
||||
// Black
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue