get bolded font helper
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
@@ -49,4 +49,11 @@ impl NotedeckTextStyle {
|
|||||||
pub fn get_font_id(&self, ctx: &Context) -> FontId {
|
pub fn get_font_id(&self, ctx: &Context) -> FontId {
|
||||||
FontId::new(get_font_size(ctx, self), self.font_family())
|
FontId::new(get_font_size(ctx, self), self.font_family())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn get_bolded_font(&self, ctx: &Context) -> FontId {
|
||||||
|
FontId::new(
|
||||||
|
get_font_size(ctx, self),
|
||||||
|
egui::FontFamily::Name(crate::NamedFontFamily::Bold.as_str().into()),
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user