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

From: Christoph Lohmann <20h_AT_r-36.net>
Date: Mon, 07 Mar 2016 20:52:30 +0100

Greetings.

On Mon, 07 Mar 2016 20:52:30 +0100 Ryusei Yamaguchi <mandel59_AT_gmail.com> wrote:
> 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).

All of this looks like a really ugly hack which noone tried to propose
to change in fontconfig/libxft itself. I will accept the patch, if you
remove the ugly preprocessor definition of the »SINGLE_WIDE_CHARS«
string and add a »ascii_printable« configuration option to config.def.h.


Sincerely,

Christoph Lohmann

💻 http://r-36.net
💻 gopher://r-36.net
http://r-36.net/about
🔐 1C3B 7E6F 9805 E5C8 C0BD 1F7F EA21 7AAC 09A9 CB55
🔐 http://r-36.net/about/20h.asc
📧 20h_AT_r-36.net
Received on Mon Mar 07 2016 - 20:52:30 CET

This archive was generated by hypermail 2.3.0 : Mon Mar 07 2016 - 21:00:13 CET