Skip to content

fontsrv: improve rendering of slanted fonts (italics) on X11#767

Open
yrk-lab wants to merge 1 commit into9fans:masterfrom
yrk-lab:fontsrv-slanted-x11
Open

fontsrv: improve rendering of slanted fonts (italics) on X11#767
yrk-lab wants to merge 1 commit into9fans:masterfrom
yrk-lab:fontsrv-slanted-x11

Conversation

@yrk-lab
Copy link
Copy Markdown
Contributor

@yrk-lab yrk-lab commented Apr 22, 2026

Improves renderings of Italic fonts, e.g. URWBookman-DemiItalic.

Improve renderings of Italic fonts, e.g. the Go font.

Before and after, as presented with tweak(1):

20260422_14h26m58s_grim

As before, the nature of the fix is to include the actual rendering width into the character size math, while retaining the original logic of tracking the position advancements: note the larger iwidth values, with the width and left values used for the tracking.

This does not yet address the remaining visual artefacts produced by the programs which make certain assumptions in frselect and the direct uses of frdrawsel of libframe in acme, sam and other clients; the assumptions being that the adjacent characters never overlap. Being much, much trickier to address, those fall outside of the scope of the proposed fix.

In #766 a similar fix was made to the macOS version of the program, and yrk-lab/fontsrv#4 is equivalent to the proposed fix.

Fixes #765 for X11 systems (Linux).

Tested on Raspbian (Debian) Trixie.

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.

fontsrv: slanted fonts (italics) are produced with visual artefacts on macOS

1 participant