pub struct GlyphRanges;👎Deprecated since 0.2.0: ImGui 1.92+ recommends dynamic fonts with on-demand glyph loading; glyph ranges are kept for legacy compatibility
Expand description
Predefined glyph ranges for common character sets
Note: These ranges are still useful with Dear ImGui 1.92+ for:
- Memory-constrained environments where you want to limit loaded glyphs
- Font merging with
glyph_exclude_ranges()to prevent conflicts - Explicit control over which characters are available
For most use cases, you can now omit glyph ranges and let the dynamic font system load glyphs on-demand.
Implementations§
Source§impl GlyphRanges
impl GlyphRanges
Sourcepub const DEFAULT: &'static [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 const DEFAULT: &'static [u32]
Basic Latin + Latin Supplement (default)
Sourcepub const KOREAN: &'static [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 const KOREAN: &'static [u32]
Korean characters
Sourcepub const JAPANESE: &'static [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 const JAPANESE: &'static [u32]
Japanese Hiragana + Katakana + Half-Width characters
Sourcepub const CHINESE_SIMPLIFIED_COMMON: &'static [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 const CHINESE_SIMPLIFIED_COMMON: &'static [u32]
Chinese Simplified common characters
Sourcepub const CHINESE_TRADITIONAL_COMMON: &'static [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 const CHINESE_TRADITIONAL_COMMON: &'static [u32]
Chinese Traditional common characters
Sourcepub const CYRILLIC: &'static [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 const CYRILLIC: &'static [u32]
Cyrillic characters
Sourcepub const THAI: &'static [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 const THAI: &'static [u32]
Thai characters
Sourcepub const VIETNAMESE: &'static [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 const VIETNAMESE: &'static [u32]
Vietnamese characters
Auto Trait Implementations§
impl Freeze for GlyphRanges
impl RefUnwindSafe for GlyphRanges
impl Send for GlyphRanges
impl Sync for GlyphRanges
impl Unpin for GlyphRanges
impl UnwindSafe for GlyphRanges
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