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]

[src]

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

[src]

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

[src]

Flags the font to be italic.

[src]

Flags the font to be oblique.

[src]

Flags the font to be monospace.

[src]

Flags the font to be bold.

[src]

Sets the fontsize.

[src]

Returns the constructed font instance.

Trait Implementations

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

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

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