mirror of
https://github.com/swaywm/sway.git
synced 2025-11-22 06:59:48 -05:00
Reuse parsed PangoFontDescription
Avoids parsing the configured font each time text is rendered.
This commit is contained in:
parent
75605491a5
commit
80e386fd97
11 changed files with 52 additions and 49 deletions
|
|
@ -505,7 +505,7 @@ struct sway_config {
|
|||
char *floating_scroll_right_cmd;
|
||||
enum sway_container_layout default_orientation;
|
||||
enum sway_container_layout default_layout;
|
||||
char *font; // Use mostly for IPC.
|
||||
char *font; // Used for IPC.
|
||||
PangoFontDescription *font_description; // Used internally for rendering and validating.
|
||||
int font_height;
|
||||
int font_baseline;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue