Struct harfbuzz_rs::Font [] [src]

#[repr(C)]
pub struct Font<'a> { /* fields omitted */ }

A font is the most important concept in harfbuzz.

A font can be created either as a subfont of an existing font or directly from a Face using its create_font function.

Methods

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

[src]

Create a new font with a specified Face.

[src]

Create a new sub font from the current font that by default inherits its parent font's face, scale, ppem and font funcs.

[src]

Returns the parent font.

[src]

Returns the face which was used to create the font.

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl<'a> Debug for Font<'a>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'a> HarfbuzzObject for Font<'a>
[src]

Type of the raw harfbuzz object.

[src]

Increases the reference count of the HarfBuzz object. Read more

[src]

Decreases the reference count of the HarfBuzz object and destroys it if the reference count reaches zero. Read more

Important traits for &'a mut W
[src]

Creates a reference from a harfbuzz object pointer. Read more

Important traits for &'a mut W
[src]

Creates a mutable reference from a harfbuzz object pointer. Read more

[src]

Returns the underlying harfbuzz object pointer. Read more

impl<'a> SetRustTypeFuncs for Font<'a>
[src]

[src]

Let a font use rusttype's font API for getting information like the advance width of some glyph or its extents. Read more

Auto Trait Implementations

impl<'a> Send for Font<'a>

impl<'a> Sync for Font<'a>