Browse Source

Expose `FontTweak` through `egui::FontTweak` (#1244)

pull/1260/head
4JX 3 years ago
committed by GitHub
parent
commit
14e985a894
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      egui/src/lib.rs
  2. 2
      epaint/src/text/mod.rs

2
egui/src/lib.rs

@ -385,7 +385,7 @@ 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::{FontData, FontDefinitions, FontFamily, FontId},
text::{FontData, FontDefinitions, FontFamily, FontId, FontTweak},
textures::TexturesDelta,
AlphaImage, ClippedMesh, Color32, ColorImage, ImageData, Mesh, Rgba, Rounding, Shape, Stroke,
TextureHandle, TextureId,

2
epaint/src/text/mod.rs

@ -10,7 +10,7 @@ mod text_layout_types;
pub const TAB_SIZE: usize = 4;
pub use {
fonts::{FontData, FontDefinitions, FontFamily, FontId, Fonts, FontsImpl},
fonts::{FontData, FontDefinitions, FontFamily, FontId, FontTweak, Fonts, FontsImpl},
text_layout::layout,
text_layout_types::*,
};

Loading…
Cancel
Save