Enum sfml::graphics::font::FontRef [] [src]

pub enum FontRef {}

A non-owning Font.

Methods

impl FontRef
[src]

Get the kerning value corresponding to a given pair of characters in a font

Arguments

  • first - Unicode code point of the first character
  • second - Unicode code point of the second character
  • characterSize - Character size, in pixels

Return the kerning offset, in pixels

Get the line spacing value

Arguments

  • characterSize - Character size, in pixels

Return the line spacing, in pixels

Get a glyph in a font

Arguments

  • codePoint - Unicode code point of the character to get
  • characterSize - Character size, in pixels
  • bold - Retrieve the bold version or the regular one?

Return the corresponding glyph

Returns the font information.

Returns the position of the underline.

Returns the thickness of the underline.

Trait Implementations

impl ToOwned for FontRef
[src]

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl Raw for FontRef
[src]

The raw representation of this type.

Acquires the raw representation of this type through &self.