SSBMTonberry / tileson

A modern and helpful cross-platform json-parser for C++, used for parsing Tiled maps.
BSD 2-Clause "Simplified" License
189 stars 29 forks source link

Feature: Add missing properties to tson::Text #76

Closed SSBMTonberry closed 1 year ago

SSBMTonberry commented 1 year ago

Adds the following missing properties addressed in the issue above.

Field Type Description
bold bool Whether to use a bold font (default: false)
fontfamily string Font family (default: sans-serif)
halign string Horizontal alignment (center, right, justify or left (default))
italic bool Whether to use an italic font (default: false)
kerning bool Whether to use kerning when placing characters (default: true)
pixelsize int Pixel size of font (default: 16)
strikeout bool Whether to strike out the text (default: false)
underline bool Whether to underline the text (default: false)
valign string Vertical alignment (center, bottom or top (default))