summaryrefslogtreecommitdiff
path: root/common/pango.c
AgeCommit message (Collapse)AuthorLines
2018-09-08Align titles to baselineRyan Dwyer-1/+4
This does the following: * Adds a baseline argument to get_text_size (the baseline is the distance from the top of the texture to the baseline). * Stores the baseline in the container when calculating the title height. * Takes the baseline into account when calculating the config's max font height. * When rendering, pads the textures according to the baseline so they line up.
2018-07-09Update for swaywm/wlroots#1126emersion-1/+1
2018-05-16Change scale from int32_t to double for pangoBrian Ashworth-3/+3
2018-05-13Fix pango markupemersion-7/+9
The condition checking if the markup is valid was inverted. This commit also adds better error handling: if the markup cannot be parsed, it fallbacks to plain text.
2018-05-13Fix crash when using pango markup fontHeghedus Razvan-5/+68
The characters & < > ' " needs to be escaped when using pango markup Signed-off-by: Heghedus Razvan <heghedus.razvan@gmail.com>
2018-04-02Fix use-after-free with block hotspotsDrew DeVault-1/+8
2018-03-29Use statically allocated text bufferDrew DeVault-4/+2
2018-03-29Start port of swaybar to layer shellDrew DeVault-0/+67
This starts up the event loop and wayland display and shims out the basic top level rendering concepts. Also includes some changes to incorporate pango into the 1.x codebase properly.