Re: [dev] [st] Font problem

From: Страхиња Радић <contact_AT_strahinja.org>
Date: Fri, 10 Feb 2023 13:44:58 +0100

On 23/02/09 07:46PM, Juozas Auryla wrote:
> Hi,
>
> DejaVu Sans Mono is rendered incorrectly on st.
> Uppercase letter height is too big.
> Is it a bug or i did something wrong?
>
> Added a screenshot for comparison (left is xfce-terminal, right is st).
> Both should look identical but they do not.

This is most probably caused by fontconfig and the way it is configured on your
system. Also it is due to the fact that st and xfce-terminal access and render
fonts using different means: st is a minimal Xorg program which uses fontconfig
and Xft, while xfce-terminal uses bloated Gtk, Pango and a number of other
libraries on top of fontconfig.

Attached is a screenshot of `st -f 'DejaVu Sans Mono:size=15'` on my system,
with some text from your screenshot for comparison.

Refer to [1] and other websites available through searching the Web for
information on fontconfig.

[1]: https://www.freedesktop.org/wiki/Software/fontconfig/



st-2023-02-10.jpg
(image/jpeg attachment: st-2023-02-10.jpg)

Received on Fri Feb 10 2023 - 13:44:58 CET

This archive was generated by hypermail 2.3.0 : Fri Feb 10 2023 - 13:48:08 CET