Struct graphics::text::Text [] [src]

pub struct Text {
    pub color: Color,
    pub font_size: FontSize,
    pub round: bool,
}

Renders text

Fields

The color

The font size

Whether or not the text's position should be rounded (to a signed distance field).

Methods

impl Text
[src]

Creates a new text with black color

Creates a new colored text

A builder method indicating that the Text's position should be rounded upon drawing.

Draws text with a character cache

Trait Implementations

impl Copy for Text
[src]

impl Clone for Text
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more