Module os.font stdlib

os.font
Version:
0.3.3
License:
MIT
Dependencies from vmod:
0
Imports:
1
Imported by:
2
Repository:
OS-specific
Show selected OS-specific symbols.
Backend-specific
Show selected Backend-specific symbols.

Dependencies defined in v.mod

This section is empty.

Imports

  • Standard Library

Imported by

  • Standard Library

  • Local Modules

Aliases

This section is empty.

Constants

This section is empty.

Sum types

This section is empty.

Functions

#fn default

fn default() string

default returns an absolute path the default system TTF font.

If the env variable VUI_FONT is set this is used instead.

NOTE that, in some cases, the function calls out to external OS programs so running this in a hot loop is not advised.

#fn get_path_variant

fn get_path_variant(font_path string, variant Variant) string

get_path_variant returns the font_path file name replaced with the file name of the font's variant version if it exists.

Structs

This section is empty.

Interfaces

This section is empty.

Enums

#enum Variant

pub enum Variant {
	normal = 0
	bold
	mono
	italic
}

Variant enumerates the different variants a font can have.