mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 13:20:05 -04:00
Clean up new code editor code
This commit is contained in:
@@ -120,7 +120,7 @@ impl FontImpl {
|
||||
|
||||
if c == '\t' {
|
||||
if let Some(space) = self.glyph_info(' ') {
|
||||
glyph_info.advance_width = crate::text::MAX_TAB_SIZE * space.advance_width;
|
||||
glyph_info.advance_width = crate::text::TAB_SIZE * space.advance_width;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ mod fonts;
|
||||
mod galley;
|
||||
|
||||
/// Default size for a `\t` character.
|
||||
pub const MAX_TAB_SIZE: f32 = 4.0;
|
||||
pub const TAB_SIZE: f32 = 4.0;
|
||||
|
||||
pub use {
|
||||
fonts::{FontDefinitions, FontFamily, Fonts, TextStyle},
|
||||
|
||||
Reference in New Issue
Block a user