Module beamui.text.fonts
Base fonts access interface and common implementation.
Synopsis
// find suitable font of size 25, normal, preferrable Arial, or, if not available, any SansSerif font
const family = FontFamily .both(GenericFontFamily .sans_serif, "Arial");
FontRef font = FontManager .instance .getFont(FontSelector(family, 25));
Import line
import beamui .text .fonts;
Functions
Name | Description |
---|---|
getReplacementChar(code)
|
Find some suitable replacement for important characters missing in font |
Classes
Name | Description |
---|---|
Font
|
Font instance with specific size, weight, face, etc. |
FontManager
|
Base class for font managers. Provides access to available fonts |
Structs
Name | Description |
---|---|
FontDescription
|
Contains all needed font properties |
FontFamily
|
Either a generic or a specific font family name |
FontList
|
Font instance collection - utility class, for font manager implementations |
FontSelector
|
|
GlyphGammaTable
|
Support for font glyph gamma correction. |
Enums
Name | Description |
---|---|
FontStyle
|
Font style |
FontWeight
|
Font weight constants (100..900) |
GenericFontFamily
|
Generic font families |
HintingMode
|
Hinting mode (currently supported for FreeType only) |
Manifest constants
Name | Type | Description |
---|---|---|
MAX_ALLOWED_FONT_SIZE
|
||
UNICODE_HYPHEN
|
||
UNICODE_NB_HYPHEN
|
||
UNICODE_NO_BREAK_SPACE
|
||
UNICODE_SOFT_HYPHEN_CODE
|
||
UNICODE_ZERO_WIDTH_SPACE
|
Global variables
Name | Type | Description |
---|---|---|
DEF_MIN_ANTIALIASED_FONT_SIZE
|
const(int)
|
Default min font size for antialiased fonts (e.g. if 16 is set, for 16+ sizes antialiasing will be used, for sizes <=15 - antialiasing will be off) |
Aliases
Name | Type | Description |
---|---|---|
FontRef
|
Ref!(beamui.text.fonts.Font)
|