You are not logged in.

#1 2020-11-14 03:11:40

yggdrasilresident
Member
Registered: 2020-11-14
Posts: 7

[SOLVED]Font kerning issues

I'm having some issues with fonts rendering with improper kerning. I have looked far and wider and messed with the font configs but to no avail.

I'm using st as the terminal.

In this screenshot the top terminal has the font set to Inconsolata and as you can see the characters are spaced too far apart. On the bottom one the font is set to Ubuntu Mono and while the English characters are properly spaced the Japanese characters are squished into each other. This happens with dwm and dmenu if I set the font to Inconsolata. Is this an issue with the suckless apps?

Last edited by yggdrasilresident (2020-11-14 09:30:55)

Offline

#2 2020-11-14 07:47:24

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,697

Re: [SOLVED]Font kerning issues

The Japanese glyphs are likely not resolved from Inconsolata but some other font,
check

FC_DEBUG=4 pango-view --font="Inconsolata" -t "禅" | grep family:

This causes problems w/ monospace layouts who all struggle to deal w/ variable width glyphs.
Resolving Droid Sans/DroidSansJapanese.ttf in https://aur.archlinux.org/packages/rxvt … ideglyphs/ worksforme™

Edit, update: resoling DroidSansJapanese in st worksformeaswell™ so it's probably the CJK font in use.

Last edited by seth (2020-11-14 08:03:00)

Offline

#3 2020-11-14 08:43:47

yggdrasilresident
Member
Registered: 2020-11-14
Posts: 7

Re: [SOLVED]Font kerning issues

Nothing seems to work, I guess either I have to find a different terminal or just go back to debian

Offline

#4 2020-11-14 08:45:31

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,697

Re: [SOLVED]Font kerning issues

Nothing seems to work

https://bbs.archlinux.org/viewtopic.php?id=57855

Which font do you resolve for Japanese glyphs?

Offline

#5 2020-11-14 08:51:36

yggdrasilresident
Member
Registered: 2020-11-14
Posts: 7

Re: [SOLVED]Font kerning issues

I tried all the fonts suggested in the wiki for japanese localization and the one you suggested. I don't understand why this would be an issue because It's the same st build I've been using for ages. I'm gonna copy over the fonts I have on my raspberry pi tomorrow and see if the fonts are really the issue.

Offline

#6 2020-11-14 08:54:02

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,697

Re: [SOLVED]Font kerning issues

That's not an answer to the question.
What is the output of the command I posted in #2 ?

Offline

#7 2020-11-14 08:58:50

yggdrasilresident
Member
Registered: 2020-11-14
Posts: 7

Re: [SOLVED]Font kerning issues

pango-view: Invalid byte sequence in conversion input

Offline

#8 2020-11-14 09:00:00

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,697

Re: [SOLVED]Font kerning issues

What's the output of

localectl
locale
locale -a

Offline

#9 2020-11-14 09:04:06

yggdrasilresident
Member
Registered: 2020-11-14
Posts: 7

Re: [SOLVED]Font kerning issues

said@phoenix:~ $ localectl
   System Locale: LANG=C
       VC Keymap: n/a
      X11 Layout: n/a
said@phoenix:~ $ locale
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=
said@phoenix:~ $ locale -a
C
POSIX
en_US.utf8
said@phoenix:~ $

Offline

#10 2020-11-14 09:07:53

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,697

Re: [SOLVED]Font kerning issues

Fix your locale, https://wiki.archlinux.org/index.php/Locale
How did you install archlinux? Which tutorial did you follow?

Offline

#11 2020-11-14 09:09:05

yggdrasilresident
Member
Registered: 2020-11-14
Posts: 7

Re: [SOLVED]Font kerning issues

I followed the tutorial in the wiki

Offline

#12 2020-11-14 09:09:45

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,697

Re: [SOLVED]Font kerning issues

Then why did you ignore that step?

Offline

#13 2020-11-14 09:25:40

yggdrasilresident
Member
Registered: 2020-11-14
Posts: 7

Re: [SOLVED]Font kerning issues

I have no Idea how I missed that 1 step but the issue is now resolved.

Thank you so much

Offline

Board footer

Powered by FluxBB