rename a bit

This commit is contained in:
2025-08-28 22:21:43 -04:00
parent 97f2f67dee
commit 3df76d926c
10 changed files with 34 additions and 31 deletions

View File

@@ -23,7 +23,7 @@ impl Default for TextData {
#[derive(Clone, Copy)]
pub struct TextAttrs {
pub color: UiColor,
pub size: f32,
pub font_size: f32,
pub line_height: f32,
pub family: Family<'static>,
}
@@ -35,7 +35,7 @@ impl Default for TextAttrs {
let size = 14.0;
Self {
color: UiColor::WHITE,
size,
font_size: size,
line_height: size * 1.2,
family: Family::SansSerif,
}
@@ -52,7 +52,7 @@ impl TextData {
) -> (TextureHandle, TextOffset) {
buffer.set_metrics(
&mut self.font_system,
Metrics::new(attrs.size, attrs.line_height),
Metrics::new(attrs.font_size, attrs.line_height),
);
buffer.set_text(
&mut self.font_system,