Module kas_core::text

source ·
Expand description

Text functionality

Most of this module is simply a re-export of the KAS Text API, hence the lower level of integration than other parts of the library.

Text objects must be prepared before usage, otherwise they may appear empty. Call ConfigCx::text_set_size from Layout::set_rect to set text position and prepare. If text is adjusted, one may use e.g. TextApi::prepare to update.

Modules

  • Font selection and loading
  • Parsers for formatted text

Structs

Enums

  • Describes required text-preparation actions
  • Alignment of contents
  • Directionality of text

Traits