1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 05:40:03 -04:00

When using a custom font you can now specify a font index (#873)

When using a custom font you can now specify a font index

Closes https://github.com/emilk/egui/issues/853
This commit is contained in:
Emil Ernerfeldt
2021-11-07 19:47:52 +01:00
committed by GitHub
parent 10c8ffa543
commit 878eddd546
4 changed files with 49 additions and 17 deletions

View File

@@ -385,12 +385,15 @@ pub use epaint::emath;
pub use emath::{lerp, pos2, remap, remap_clamp, vec2, Align, Align2, NumExt, Pos2, Rect, Vec2};
pub use epaint::{
color, mutex,
text::{FontDefinitions, FontFamily, TextStyle},
text::{FontData, FontDefinitions, FontFamily, TextStyle},
ClippedMesh, Color32, Rgba, Shape, Stroke, Texture, TextureId,
};
pub mod text {
pub use epaint::text::{Fonts, Galley, LayoutJob, LayoutSection, TextFormat, TAB_SIZE};
pub use epaint::text::{
FontData, FontDefinitions, FontFamily, Fonts, Galley, LayoutJob, LayoutSection, TextFormat,
TextStyle, TAB_SIZE,
};
}
pub use {