mirror of
https://github.com/swaywm/sway.git
synced 2026-04-26 06:46:26 -04:00
Don't use title content in size calculations
Make height configurable instead This prevents distracting screen flashing and seems to work fine for larger glyphs as well (Tested with Japanese). squashed: Free layout and buffer squashed: pass in markup information
This commit is contained in:
parent
9d6787d10d
commit
0e866013b6
15 changed files with 91 additions and 68 deletions
|
|
@ -15,6 +15,8 @@
|
|||
size_t escape_markup_text(const char *src, char *dest);
|
||||
PangoLayout *get_pango_layout(cairo_t *cairo, const char *font,
|
||||
const char *text, double scale, bool markup);
|
||||
void get_text_physical_size(cairo_t *cairo, const char *font, int *ascent, int* descent,
|
||||
int *ink_size, bool markup, const char *fmt, ...);
|
||||
void get_text_size(cairo_t *cairo, const char *font, int *width, int *height,
|
||||
int *baseline, double scale, bool markup, const char *fmt, ...);
|
||||
void pango_printf(cairo_t *cairo, const char *font,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue