Raxol.Terminal.Font.Manager (Raxol v0.5.0)
View SourceManages font operations and settings for the terminal, including font family, size, weight, and style.
Summary
Functions
Adds a custom font.
Gets the current custom fonts.
Gets the current fallback fonts.
Gets the current font family.
Gets the complete font stack including fallbacks.
Gets the current letter spacing.
Gets the current line height.
Gets the current font size.
Gets the current font style.
Gets the current font weight.
Creates a new font manager instance with default settings.
Removes a custom font.
Resets the font manager to its initial state.
Sets the fallback fonts.
Sets the font family.
Sets the letter spacing.
Sets the line height.
Sets the font size.
Sets the font style.
Sets the font weight.
Types
@type fallback_fonts() :: [font_family()]
@type font_family() :: String.t()
@type font_size() :: non_neg_integer()
@type font_style() :: :normal | :italic | :oblique
@type font_weight() :: :normal | :bold | :lighter | :bolder | 100..900
@type letter_spacing() :: number()
@type line_height() :: number()
@type t() :: %Raxol.Terminal.Font.Manager{ custom_fonts: custom_fonts(), fallback_fonts: fallback_fonts(), family: font_family(), letter_spacing: letter_spacing(), line_height: line_height(), size: font_size(), style: font_style(), weight: font_weight() }
Functions
Adds a custom font.
Gets the current custom fonts.
Gets the current fallback fonts.
Gets the current font family.
Gets the complete font stack including fallbacks.
Gets the current letter spacing.
Gets the current line height.
Gets the current font size.
Gets the current font style.
Gets the current font weight.
Creates a new font manager instance with default settings.
Removes a custom font.
Resets the font manager to its initial state.
Sets the fallback fonts.
Sets the font family.
Sets the letter spacing.
Sets the line height.
Sets the font size.
Sets the font style.
Sets the font weight.