Re: [dev] [PATCH] Measure the single advance width with a heuristic method

From: Ryusei Yamaguchi <mandel59_AT_gmail.com>
Date: Tue, 8 Mar 2016 00:20:09 +0900

On 2016/03/07 22:53, Christoph Lohmann wrote:
> Please give me more context, like a screenshot before and after and why this
> can't be fixed in fontconfig itself. This would be yet another fontconfig API
> hack in st.

Step to Reproduce:
   1. Install M+ 1m from https://osdn.jp/projects/mplus-fonts/releases/
      (or "sudo apt-get install fonts-mplus" in Debian)
   2. Run ./st -f "M+ 1m"

This issue isn't reproduced with only "M+ 1m" but other dual-width
fonts, such as "TakaoGothic" (fonts-takao-gothic in Debian).

Justification:
GNOME VTE and Emacs also use such kind of hack.[1][2]
[1]:
https://github.com/GNOME/vte/blob/a9fa01991ab7fb068af6d2a81691f32b44b91a9c/src/vtedraw.cc#L386
[2]:
https://github.com/emacs-mirror/emacs/blob/d2dd614716e34edb5891e58c029741cd6b32217d/src/xftfont.c#L385

Sincerely,
Ryusei

Screenshot_before.png
(image/png attachment: Screenshot_before.png)

Screenshot_after.png
(image/png attachment: Screenshot_after.png)

Received on Mon Mar 07 2016 - 16:20:09 CET

This archive was generated by hypermail 2.3.0 : Mon Mar 07 2016 - 16:24:13 CET