Skip to content

Comments

Pango: use font cache to check if the font overflows#141

Merged
kdj0c merged 1 commit intoAetf:mainfrom
kdj0c:use_font_cache
Oct 3, 2025
Merged

Pango: use font cache to check if the font overflows#141
kdj0c merged 1 commit intoAetf:mainfrom
kdj0c:use_font_cache

Conversation

@kdj0c
Copy link
Collaborator

@kdj0c kdj0c commented Oct 2, 2025

Use the font cache instead of drawing the character each time to check if it can spill over the next character.
This also solves the memory leak because the pango layout object was ever freed.

Fixes #139

Use the font cache instead of drawing the character each time to
check if it can spill over the next character.
This also solves the memory leak because the pango layout object
was ever freed.

Fixes Aetf#139

Signed-off-by: Jocelyn Falempe <[email protected]>
@michael-oberpriller
Copy link

Good idea. LGTM.

@daryltucker
Copy link

Fixes #139

meson setup --reconfigure build --buildtype=release -Dmulti_seat=disabled -Dvideo_drm3d=enabled

@kdj0c kdj0c merged commit 4e6ed56 into Aetf:main Oct 3, 2025
1 check passed
@kdj0c kdj0c deleted the use_font_cache branch October 10, 2025 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Out of Memory, 14G memory peak

3 participants