[−][src]Struct imgui::ImFontConfig
A builder for the configuration for a font.
Methods
impl ImFontConfig
[src]
pub fn new() -> ImFontConfig
[src]
pub fn size_pixels(self, size_pixels: f32) -> ImFontConfig
[src]
pub fn oversample_h(self, oversample_h: u32) -> ImFontConfig
[src]
pub fn oversample_v(self, oversample_v: u32) -> ImFontConfig
[src]
pub fn pixel_snap_h(self, pixel_snap_h: bool) -> ImFontConfig
[src]
pub fn glyph_extra_spacing<I: Into<ImVec2>>(
self,
extra_spacing: I
) -> ImFontConfig
[src]
self,
extra_spacing: I
) -> ImFontConfig
pub fn glyph_offset<I: Into<ImVec2>>(self, glyph_offset: I) -> ImFontConfig
[src]
pub fn merge_mode(self, merge_mode: bool) -> ImFontConfig
[src]
pub fn rasterizer_multiply(self, rasterizer_multiply: f32) -> ImFontConfig
[src]
pub fn add_font<'a>(
self,
atlas: &'a mut ImFontAtlas<'a>,
data: &[u8],
range: &FontGlyphRange
) -> ImFont<'a>
[src]
self,
atlas: &'a mut ImFontAtlas<'a>,
data: &[u8],
range: &FontGlyphRange
) -> ImFont<'a>
Adds a custom font to the font set with the given configuration. A font size must be set in the configuration.
Panics
If no font size is set for the configuration.
pub fn add_default_font<'a>(self, atlas: &'a mut ImFontAtlas<'a>) -> ImFont<'a>
[src]
Adds the default font to a given atlas using this configuration.
Trait Implementations
impl Copy for ImFontConfig
[src]
impl PartialEq<ImFontConfig> for ImFontConfig
[src]
fn eq(&self, other: &ImFontConfig) -> bool
[src]
fn ne(&self, other: &ImFontConfig) -> bool
[src]
impl Clone for ImFontConfig
[src]
fn clone(&self) -> ImFontConfig
[src]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for ImFontConfig
[src]
impl Debug for ImFontConfig
[src]
Auto Trait Implementations
impl Send for ImFontConfig
impl Sync for ImFontConfig
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,