Format
This commit is contained in:
parent
329941c4a6
commit
a11f68f13d
6 changed files with 66 additions and 26 deletions
|
|
@ -534,7 +534,11 @@ impl Buffer {
|
|||
}
|
||||
|
||||
/// Set monospace width monospace glyphs should be resized to match. `None` means don't resize
|
||||
pub fn set_monospace_width(&mut self, font_system: &mut FontSystem, monospace_width: Option<f32>) {
|
||||
pub fn set_monospace_width(
|
||||
&mut self,
|
||||
font_system: &mut FontSystem,
|
||||
monospace_width: Option<f32>,
|
||||
) {
|
||||
if monospace_width != self.monospace_width {
|
||||
self.monospace_width = monospace_width;
|
||||
self.relayout(font_system);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue