expose egui::TextFormat
This commit is contained in:
parent
981b812f68
commit
863e6cb07d
2 changed files with 6 additions and 5 deletions
|
@ -375,6 +375,10 @@ pub use epaint::{
|
||||||
ClippedMesh, Color32, Rgba, Shape, Stroke, Texture, TextureId,
|
ClippedMesh, Color32, Rgba, Shape, Stroke, Texture, TextureId,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub mod text {
|
||||||
|
pub use epaint::text::{Fonts, Galley, LayoutJob, LayoutSection, TextFormat, TAB_SIZE};
|
||||||
|
}
|
||||||
|
|
||||||
pub use {
|
pub use {
|
||||||
containers::*,
|
containers::*,
|
||||||
context::{Context, CtxRef},
|
context::{Context, CtxRef},
|
||||||
|
@ -392,14 +396,11 @@ pub use {
|
||||||
response::{InnerResponse, Response},
|
response::{InnerResponse, Response},
|
||||||
sense::Sense,
|
sense::Sense,
|
||||||
style::{Style, Visuals},
|
style::{Style, Visuals},
|
||||||
|
text::{Galley, TextFormat},
|
||||||
ui::Ui,
|
ui::Ui,
|
||||||
widgets::*,
|
widgets::*,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub mod text {
|
|
||||||
pub use epaint::text::{Fonts, Galley, LayoutJob, LayoutSection, TextFormat, TAB_SIZE};
|
|
||||||
}
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
/// Helper function that adds a label when compiling with debug assertions enabled.
|
/// Helper function that adds a label when compiling with debug assertions enabled.
|
||||||
|
|
|
@ -401,7 +401,7 @@ impl SubTree {
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
fn text_layout_ui(ui: &mut egui::Ui) {
|
fn text_layout_ui(ui: &mut egui::Ui) {
|
||||||
use egui::epaint::text::{LayoutJob, TextFormat};
|
use egui::text::LayoutJob;
|
||||||
|
|
||||||
let mut job = LayoutJob::default();
|
let mut job = LayoutJob::default();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue