unleash the sizes
This commit is contained in:
@@ -12,7 +12,7 @@ pub struct Text {
|
||||
}
|
||||
|
||||
impl Text {
|
||||
pub fn font_size(mut self, size: impl UiNum) -> Self {
|
||||
pub fn size(mut self, size: impl UiNum) -> Self {
|
||||
self.attrs.font_size = size.to_f32();
|
||||
self.attrs.line_height = self.attrs.font_size * 1.1;
|
||||
self
|
||||
@@ -97,7 +97,7 @@ pub struct TextBuilder {
|
||||
}
|
||||
|
||||
impl TextBuilder {
|
||||
pub fn font_size(mut self, size: impl UiNum) -> Self {
|
||||
pub fn size(mut self, size: impl UiNum) -> Self {
|
||||
self.attrs.font_size = size.to_f32();
|
||||
self.attrs.line_height = self.attrs.font_size * 1.1;
|
||||
self
|
||||
|
||||
Reference in New Issue
Block a user