CLASS v1.8.0

tilemap.TextProperties

pykraken.tilemap.TextProperties

TextProperties holds styling for text objects on the map.

More about tilemap.TextProperties

Attributes

  • font_family (str) — Name of the font family.
  • pixel_size (int) — Font size in pixels.
  • wrap (bool) — Whether wrapping is enabled.
  • color (Color) — Text color.
  • bold (bool) — Bold style flag.
  • italic (bool) — Italic style flag.
  • underline (bool) — Underline flag.
  • strikethrough (bool) — Strikethrough flag.
  • kerning (bool) — Kerning enabled flag.
  • align (TextAlign) — Horizontal alignment.
  • text (str) — The text content.

Reference

PYTHON API
tilemap.TextProperties(/, *args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

align

property
align: TextAlign

Horizontal text alignment.

bold

property
bold: bool

Bold style flag.

color

property
color: Color

Text color.

font_family

property
font_family: str

Font family name.

italic

property
italic: bool

Italic style flag.

kerning

property
kerning: bool

Kerning enabled flag.

pixel_size

property
pixel_size: int

Font size in pixels.

strikethrough: bool

Strikethrough style flag.

text

property
text: str

Text content.

underline

property
underline: bool

Underline style flag.

wrap

property
wrap: bool

Whether text wrapping is enabled.

Find your next step

Start typing to search the manual.