diff options
author | 2022-06-29 21:38:24 +0200 | |
---|---|---|
committer | 2022-07-01 13:05:58 +0200 | |
commit | 75605491a54f8647740fdba75dd2ad7bae9e0ca7 (patch) | |
tree | f1d7476fbc893517ea01ed0f92841219f8b4808a /swaynag/config.c | |
parent | Avoid unecessary string copy (diff) | |
download | sway-75605491a54f8647740fdba75dd2ad7bae9e0ca7.tar.gz sway-75605491a54f8647740fdba75dd2ad7bae9e0ca7.tar.zst sway-75605491a54f8647740fdba75dd2ad7bae9e0ca7.zip |
Reject font values that are invalid for pango
Use pango to parse font configuration early, and reject the command as
invalid if the value is invalid for pango. Since we're already parsing
the font into a `PangoFontDescription`, keep that instance around and
avoid re-parsing the font each time we render text.
Fixes: https://github.com/swaywm/sway/issues/6805
Diffstat (limited to 'swaynag/config.c')
0 files changed, 0 insertions, 0 deletions