pub struct GlyphRangesBuilder { /* private fields */ }๐Deprecated since 0.1.0: Use dynamic font loading instead. Glyphs are now loaded on-demand automatically with Dear ImGui 1.92+.
Expand description
Builder for creating custom glyph ranges
โ ๏ธ DEPRECATED with Dear ImGui 1.92+: Consider using the new dynamic font system instead.
This allows you to specify exactly which characters should be loaded from a font, which can save memory and improve performance.
Note: With Dear ImGui 1.92+ dynamic fonts, this is only needed for special cases where you want to explicitly control memory usage or exclude certain ranges.
Implementationsยง
Sourceยงimpl GlyphRangesBuilder
impl GlyphRangesBuilder
Sourcepub fn new() -> Self
๐Deprecated since 0.2.0: ImGui 1.92+ recommends dynamic fonts with on-demand glyph loading; glyph ranges are kept for legacy compatibility
pub fn new() -> Self
Creates a new glyph ranges builder
Sourcepub fn add_text(&mut self, text: &str)
๐Deprecated since 0.2.0: ImGui 1.92+ recommends dynamic fonts with on-demand glyph loading; glyph ranges are kept for legacy compatibility
pub fn add_text(&mut self, text: &str)
Add text to the builder (all characters in the text will be included)
Sourcepub fn add_ranges(&mut self, ranges: &[u32])
๐Deprecated since 0.2.0: ImGui 1.92+ recommends dynamic fonts with on-demand glyph loading; glyph ranges are kept for legacy compatibility
pub fn add_ranges(&mut self, ranges: &[u32])
Add a range of characters
Sourcepub fn build_ranges(&mut self) -> Vec<u32>
๐Deprecated since 0.2.0: ImGui 1.92+ recommends dynamic fonts with on-demand glyph loading; glyph ranges are kept for legacy compatibility
pub fn build_ranges(&mut self) -> Vec<u32>
Build the final ranges array
Trait Implementationsยง
Sourceยงimpl Debug for GlyphRangesBuilder
impl Debug for GlyphRangesBuilder
Auto Trait Implementationsยง
impl Freeze for GlyphRangesBuilder
impl RefUnwindSafe for GlyphRangesBuilder
impl !Send for GlyphRangesBuilder
impl !Sync for GlyphRangesBuilder
impl Unpin for GlyphRangesBuilder
impl UnwindSafe for GlyphRangesBuilder
Blanket Implementationsยง
Sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more