Skip to content

Commit 31dd626

Browse files
committed
Appease the clip
1 parent eb39839 commit 31dd626

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

crates/egui/src/memory/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -275,12 +275,12 @@ pub struct Options {
275275
///
276276
/// Only the fonts in [`Style::text_styles`] will be pre-cached.
277277
///
278-
/// This can lead to fewer texture operations, but may use up the texture atlas quicker
279-
/// if you are changing [`Style::text_styles`], or have a lot of text styles.
278+
/// This can lead to fewer texture operations, but may use up the texture atlas quicker if you are changing
279+
/// [`Style::text_styles`], or have a lot of text styles.
280280
///
281-
/// TODO(valadaptive): preload_font_glyphs used to do something, but the new text layout code rasterizes at subpixel
282-
/// offsets, and I don't feel like rasterizing all 4 offsets for every glyph ahead of time. Is preload_font_glyphs
283-
/// actually useful or just a placebo?
281+
/// TODO(valadaptive): `preload_font_glyphs` used to do something, but the new text layout code rasterizes at
282+
/// subpixel offsets, and I don't feel like rasterizing all 4 offsets for every glyph ahead of time. Is
283+
/// `preload_font_glyphs` actually useful or just a placebo?
284284
pub preload_font_glyphs: bool,
285285

286286
/// Check reusing of [`Id`]s, and show a visual warning on screen when one is found.

crates/epaint/src/text/parley_layout.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,10 @@ pub(super) fn layout(fonts: &mut FontsLayoutView<'_>, job: LayoutJob) -> Galley
454454
*bounds = Rect::from_min_size(pos2(horiz_offset, 0.0), Vec2::ZERO);
455455
}
456456

457-
debug_assert!(!bounds.is_negative());
457+
debug_assert!(
458+
!bounds.is_negative(),
459+
"Invalid bounds for galley mesh: {bounds:?}"
460+
);
458461
}
459462

460463
Galley {

0 commit comments

Comments
 (0)