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.
At a glance
12 membersReference
PYTHON APIConstructor
methodtilemap.TextProperties(/, *args, **kwargs)Initialize self. See help(type(self)) for accurate signature.
align
propertyalign: TextAlignHorizontal text alignment.
bold
propertybold: boolBold style flag.
color
propertycolor: ColorText color.
font_family
propertyfont_family: strFont family name.
italic
propertyitalic: boolItalic style flag.
kerning
propertykerning: boolKerning enabled flag.
pixel_size
propertypixel_size: intFont size in pixels.
strikethrough
propertystrikethrough: boolStrikethrough style flag.
text
propertytext: strText content.
underline
propertyunderline: boolUnderline style flag.
wrap
propertywrap: boolWhether text wrapping is enabled.