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]

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