Struct sensehat_screen::fonts::FontString [−][src]
pub struct FontString(_);
A FontString
is a collection of FontUtf16
which can be rendered to frames for the LED
Matrix.
Methods
impl FontString
[src]
impl FontString
pub fn new() -> Self
[src]
pub fn new() -> Self
Create an empty FontString
.
pub fn encode_utf16(&self) -> Vec<u16>
[src]
pub fn encode_utf16(&self) -> Vec<u16>
Render the font string as a collection of unicode value points, Vec<u16>
.
pub fn to_string(&self) -> String
[src]
pub fn to_string(&self) -> String
Render the font string as a String
.
pub fn font_frames(&self, stroke: PixelColor, bg: PixelColor) -> Vec<FontFrame>
[src]
pub fn font_frames(&self, stroke: PixelColor, bg: PixelColor) -> Vec<FontFrame>
Returns a Vec<FontFrame>
for each inner font.
pub fn pixel_frames(
&self,
stroke: PixelColor,
bg: PixelColor
) -> Vec<PixelFrame>
[src]
pub fn pixel_frames(
&self,
stroke: PixelColor,
bg: PixelColor
) -> Vec<PixelFrame>
Returns a Vec<PixelFrame>
for each inner font.
Trait Implementations
impl Clone for FontString
[src]
impl Clone for FontString
fn clone(&self) -> FontString
[src]
fn clone(&self) -> FontString
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for FontString
[src]
impl Debug for FontString
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for FontString
[src]
impl Default for FontString
fn default() -> FontString
[src]
fn default() -> FontString
Returns the "default value" for a type. Read more
impl PartialEq for FontString
[src]
impl PartialEq for FontString
fn eq(&self, other: &FontString) -> bool
[src]
fn eq(&self, other: &FontString) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &FontString) -> bool
[src]
fn ne(&self, other: &FontString) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for FontString
impl Send for FontString
impl Sync for FontString
impl Sync for FontString