mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-22 05:33:45 -04:00
term: cache font baseline
No need to redo the calculation for every single cell we render, every frame...
This commit is contained in:
parent
34aa979f46
commit
4449177517
4 changed files with 12 additions and 9 deletions
|
|
@ -406,6 +406,7 @@ struct terminal {
|
|||
bool font_is_sized_by_dpi;
|
||||
int16_t font_x_ofs;
|
||||
int16_t font_y_ofs;
|
||||
int16_t font_baseline;
|
||||
enum fcft_subpixel font_subpixel;
|
||||
|
||||
struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue