Struct radiant_rs::support::FontBuilder[][src]

#[must_use]
pub struct FontBuilder<'a> { /* fields omitted */ }

A font builder.

Obtained from Font::builder().

Examples

let my_font = Font::builder(&rendercontext).family("Arial").size(16.0).build().unwrap();

Methods

impl<'a> FontBuilder<'a>
[src]

Sets a family for the font. The font will be retrieved from the operating system. Mutually exclusive with file().

Sets file for the Font to be loaded from. Mutually exclusive with family().

Flags the font to be italic.

Flags the font to be oblique.

Flags the font to be monospace.

Flags the font to be bold.

Sets the fontsize.

Returns the constructed font instance.

Trait Implementations

impl<'a> Clone for FontBuilder<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<'a> Send for FontBuilder<'a>

impl<'a> Sync for FontBuilder<'a>