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