You are not logged in.

#1 2011-06-26 20:29:57

Master One
Member
From: Europe
Registered: 2007-01-21
Posts: 249

[SOLVED] Console Font (and/or Console Map) mismatch

Ok, this has always driven me crazy, and I never could get this right on Arch:

LOCALE="de_AT.UTF-8"
KEYMAP="de-latin1-nodeadkeys"
CONSOLEFONT="lat9w-16"
CONSOLEMAP="8859-15"

The problem is now, that screen output shows certain distortions, like this line in nano:

Veränderten Puffer speichern (?Nein? VERWIRFT DIE ÄNDERUNGEN) ?

which originally should look like this:

Veränderten Puffer speichern („Nein“ VERWIRFT DIE ÄNDERUNGEN) ?

The first line is how it's shown in my fresh Arch install, the second one is how it's shown on a machine running Ubuntu.

I already played around with setfont and showconsolefont, but I just can not get nano to display correctly in a console that way how it is supposed to.

Any idea?

P.S. I don't know how to check how Ubuntu does the trick, there does not seem to be any config file in /etc responsible for CONSOLEFONT and CONSOLEMAP, and I could not find any info, if there is a command to output the actually used settings.

Last edited by Master One (2011-06-27 19:42:09)

Offline

#2 2011-06-26 21:07:57

viggee
Member
Registered: 2011-05-07
Posts: 22

Re: [SOLVED] Console Font (and/or Console Map) mismatch

same problem here, bugged me since my first arch install.

almoste the same settings, just for a DE environment

LOCALE="de_DE.UTF-8"
KEYMAP="de-latin1"
CONSOLEFONT="lat9w-16"
CONSOLEMAP="8859-15"

Offline

#3 2011-06-26 22:15:41

MoonSwan
Member
From: Great White North
Registered: 2008-01-23
Posts: 881

Re: [SOLVED] Console Font (and/or Console Map) mismatch

https://bbs.archlinux.org/viewtopic.php?id=119944  .. try that thread, it may help?

Offline

#4 2011-06-27 08:17:07

Master One
Member
From: Europe
Registered: 2007-01-21
Posts: 249

Re: [SOLVED] Console Font (and/or Console Map) mismatch

MoonSwan wrote:

https://bbs.archlinux.org/viewtopic.php?id=119944  .. try that thread, it may help?

No, the issue in that thread is of completely different nature.

I played around a bit more, and selecting a "LatArCyr" font shows the mentioned line in nano correctly, but using such a font results in other issues (like the EURO symbol not being there any more).

This issue is definitely font-selection related, and it really bugs me, because in Debian and Ubuntu they have solved the issue.

On a Debian/Ubuntu system, the console fonts are to be found in /usr/share/consolefonts, and the content of that directory looks completely different then on Arch:

Arabic-Fixed15.psf.gz             Lat15-Terminus20x10.psf.gz
Arabic-Fixed16.psf.gz             Lat15-Terminus22x11.psf.gz
Arabic-VGA14.psf.gz               Lat15-Terminus24x12.psf.gz
Arabic-VGA16.psf.gz               Lat15-Terminus28x14.psf.gz
Arabic-VGA8.psf.gz                Lat15-Terminus32x16.psf.gz
Armenian-Fixed13.psf.gz           Lat15-TerminusBold12x6.psf.gz
Armenian-Fixed14.psf.gz           Lat15-TerminusBold14.psf.gz
Armenian-Fixed15.psf.gz           Lat15-TerminusBold16.psf.gz
Armenian-Fixed16.psf.gz           Lat15-TerminusBold20x10.psf.gz
Armenian-Fixed18.psf.gz           Lat15-TerminusBold22x11.psf.gz
CyrAsia-Fixed13.psf.gz            Lat15-TerminusBold24x12.psf.gz
CyrAsia-Fixed14.psf.gz            Lat15-TerminusBold28x14.psf.gz
CyrAsia-Fixed15.psf.gz            Lat15-TerminusBold32x16.psf.gz
CyrAsia-Fixed16.psf.gz            Lat15-TerminusBoldVGA14.psf.gz
CyrAsia-Fixed18.psf.gz            Lat15-TerminusBoldVGA16.psf.gz
CyrAsia-Terminus12x6.psf.gz       Lat15-VGA14.psf.gz
CyrAsia-Terminus14.psf.gz         Lat15-VGA16.psf.gz
CyrAsia-Terminus16.psf.gz         Lat15-VGA8.psf.gz
CyrAsia-Terminus20x10.psf.gz      Lat2-Fixed13.psf.gz
CyrAsia-Terminus22x11.psf.gz      Lat2-Fixed14.psf.gz
CyrAsia-Terminus24x12.psf.gz      Lat2-Fixed15.psf.gz
CyrAsia-Terminus28x14.psf.gz      Lat2-Fixed16.psf.gz
CyrAsia-Terminus32x16.psf.gz      Lat2-Fixed18.psf.gz
CyrAsia-TerminusBold12x6.psf.gz   Lat2-Terminus12x6.psf.gz
CyrAsia-TerminusBold14.psf.gz     Lat2-Terminus14.psf.gz
CyrAsia-TerminusBold16.psf.gz     Lat2-Terminus16.psf.gz
CyrAsia-TerminusBold20x10.psf.gz  Lat2-Terminus20x10.psf.gz
CyrAsia-TerminusBold22x11.psf.gz  Lat2-Terminus22x11.psf.gz
CyrAsia-TerminusBold24x12.psf.gz  Lat2-Terminus24x12.psf.gz
CyrAsia-TerminusBold28x14.psf.gz  Lat2-Terminus28x14.psf.gz
CyrAsia-TerminusBold32x16.psf.gz  Lat2-Terminus32x16.psf.gz
CyrAsia-TerminusBoldVGA14.psf.gz  Lat2-TerminusBold12x6.psf.gz
CyrAsia-TerminusBoldVGA16.psf.gz  Lat2-TerminusBold14.psf.gz
CyrKoi-Fixed13.psf.gz             Lat2-TerminusBold16.psf.gz
CyrKoi-Fixed14.psf.gz             Lat2-TerminusBold20x10.psf.gz
CyrKoi-Fixed15.psf.gz             Lat2-TerminusBold22x11.psf.gz
CyrKoi-Fixed16.psf.gz             Lat2-TerminusBold24x12.psf.gz
CyrKoi-Fixed18.psf.gz             Lat2-TerminusBold28x14.psf.gz
CyrKoi-Terminus12x6.psf.gz        Lat2-TerminusBold32x16.psf.gz
CyrKoi-Terminus14.psf.gz          Lat2-TerminusBoldVGA14.psf.gz
CyrKoi-Terminus16.psf.gz          Lat2-TerminusBoldVGA16.psf.gz
CyrKoi-Terminus20x10.psf.gz       Lat2-VGA14.psf.gz
CyrKoi-Terminus22x11.psf.gz       Lat2-VGA16.psf.gz
CyrKoi-Terminus24x12.psf.gz       Lat2-VGA8.psf.gz
CyrKoi-Terminus28x14.psf.gz       Lat38-Fixed13.psf.gz
CyrKoi-Terminus32x16.psf.gz       Lat38-Fixed14.psf.gz
CyrKoi-TerminusBold12x6.psf.gz    Lat38-Fixed15.psf.gz
CyrKoi-TerminusBold14.psf.gz      Lat38-Fixed16.psf.gz
CyrKoi-TerminusBold16.psf.gz      Lat38-Fixed18.psf.gz
CyrKoi-TerminusBold20x10.psf.gz   Lat38-VGA14.psf.gz
CyrKoi-TerminusBold22x11.psf.gz   Lat38-VGA16.psf.gz
CyrKoi-TerminusBold24x12.psf.gz   Lat38-VGA8.psf.gz
CyrKoi-TerminusBold28x14.psf.gz   Lat7-Fixed13.psf.gz
CyrKoi-TerminusBold32x16.psf.gz   Lat7-Fixed14.psf.gz
CyrKoi-TerminusBoldVGA14.psf.gz   Lat7-Fixed15.psf.gz
CyrKoi-TerminusBoldVGA16.psf.gz   Lat7-Fixed16.psf.gz
CyrKoi-VGA14.psf.gz               Lat7-Fixed18.psf.gz
CyrKoi-VGA16.psf.gz               Lat7-Terminus12x6.psf.gz
CyrKoi-VGA8.psf.gz                Lat7-Terminus14.psf.gz
CyrSlav-Fixed13.psf.gz            Lat7-Terminus16.psf.gz
CyrSlav-Fixed14.psf.gz            Lat7-Terminus20x10.psf.gz
CyrSlav-Fixed15.psf.gz            Lat7-Terminus22x11.psf.gz
CyrSlav-Fixed16.psf.gz            Lat7-Terminus24x12.psf.gz
CyrSlav-Fixed18.psf.gz            Lat7-Terminus28x14.psf.gz
CyrSlav-Terminus12x6.psf.gz       Lat7-Terminus32x16.psf.gz
CyrSlav-Terminus14.psf.gz         Lat7-TerminusBold12x6.psf.gz
CyrSlav-Terminus16.psf.gz         Lat7-TerminusBold14.psf.gz
CyrSlav-Terminus20x10.psf.gz      Lat7-TerminusBold16.psf.gz
CyrSlav-Terminus22x11.psf.gz      Lat7-TerminusBold20x10.psf.gz
CyrSlav-Terminus24x12.psf.gz      Lat7-TerminusBold22x11.psf.gz
CyrSlav-Terminus28x14.psf.gz      Lat7-TerminusBold24x12.psf.gz
CyrSlav-Terminus32x16.psf.gz      Lat7-TerminusBold28x14.psf.gz
CyrSlav-TerminusBold12x6.psf.gz   Lat7-TerminusBold32x16.psf.gz
CyrSlav-TerminusBold14.psf.gz     Lat7-TerminusBoldVGA14.psf.gz
CyrSlav-TerminusBold16.psf.gz     Lat7-TerminusBoldVGA16.psf.gz
CyrSlav-TerminusBold20x10.psf.gz  Lat7-VGA14.psf.gz
CyrSlav-TerminusBold22x11.psf.gz  Lat7-VGA16.psf.gz
CyrSlav-TerminusBold24x12.psf.gz  Lat7-VGA8.psf.gz
CyrSlav-TerminusBold28x14.psf.gz  Thai-Fixed13.psf.gz
CyrSlav-TerminusBold32x16.psf.gz  Thai-Fixed14.psf.gz
CyrSlav-TerminusBoldVGA14.psf.gz  Thai-Fixed15.psf.gz
CyrSlav-TerminusBoldVGA16.psf.gz  Thai-Fixed16.psf.gz
CyrSlav-VGA14.psf.gz              Thai-Fixed18.psf.gz
CyrSlav-VGA16.psf.gz              Uni1-Fixed15.psf.gz
CyrSlav-VGA8.psf.gz               Uni1-Fixed16.psf.gz
Ethiopian-Fixed15.psf.gz          Uni1-VGA14.psf.gz
Ethiopian-Fixed18.psf.gz          Uni1-VGA16.psf.gz
Ethiopian-Goha12.psf.gz           Uni1-VGA8.psf.gz
Ethiopian-Goha14.psf.gz           Uni2-Fixed13.psf.gz
Ethiopian-Goha16.psf.gz           Uni2-Fixed14.psf.gz
Ethiopian-GohaClassic12.psf.gz    Uni2-Fixed15.psf.gz
Ethiopian-GohaClassic14.psf.gz    Uni2-Fixed16.psf.gz
Ethiopian-GohaClassic16.psf.gz    Uni2-Fixed18.psf.gz
Georgian-Fixed13.psf.gz           Uni2-Terminus12x6.psf.gz
Georgian-Fixed14.psf.gz           Uni2-Terminus14.psf.gz
Georgian-Fixed15.psf.gz           Uni2-Terminus16.psf.gz
Georgian-Fixed16.psf.gz           Uni2-Terminus20x10.psf.gz
Georgian-Fixed18.psf.gz           Uni2-Terminus22x11.psf.gz
Greek-Fixed13.psf.gz              Uni2-Terminus24x12.psf.gz
Greek-Fixed14.psf.gz              Uni2-Terminus28x14.psf.gz
Greek-Fixed15.psf.gz              Uni2-Terminus32x16.psf.gz
Greek-Fixed16.psf.gz              Uni2-TerminusBold12x6.psf.gz
Greek-Fixed18.psf.gz              Uni2-TerminusBold14.psf.gz
Greek-Terminus12x6.psf.gz         Uni2-TerminusBold16.psf.gz
Greek-Terminus14.psf.gz           Uni2-TerminusBold20x10.psf.gz
Greek-Terminus16.psf.gz           Uni2-TerminusBold22x11.psf.gz
Greek-Terminus20x10.psf.gz        Uni2-TerminusBold24x12.psf.gz
Greek-Terminus22x11.psf.gz        Uni2-TerminusBold28x14.psf.gz
Greek-Terminus24x12.psf.gz        Uni2-TerminusBold32x16.psf.gz
Greek-Terminus28x14.psf.gz        Uni2-TerminusBoldVGA14.psf.gz
Greek-Terminus32x16.psf.gz        Uni2-TerminusBoldVGA16.psf.gz
Greek-TerminusBold12x6.psf.gz     Uni2-VGA14.psf.gz
Greek-TerminusBold14.psf.gz       Uni2-VGA16.psf.gz
Greek-TerminusBold16.psf.gz       Uni2-VGA8.psf.gz
Greek-TerminusBold20x10.psf.gz    Uni3-Fixed13.psf.gz
Greek-TerminusBold22x11.psf.gz    Uni3-Fixed14.psf.gz
Greek-TerminusBold24x12.psf.gz    Uni3-Fixed15.psf.gz
Greek-TerminusBold28x14.psf.gz    Uni3-Fixed16.psf.gz
Greek-TerminusBold32x16.psf.gz    Uni3-Fixed18.psf.gz
Greek-TerminusBoldVGA14.psf.gz    Uni3-Terminus12x6.psf.gz
Greek-TerminusBoldVGA16.psf.gz    Uni3-Terminus14.psf.gz
Greek-VGA14.psf.gz                Uni3-Terminus16.psf.gz
Greek-VGA16.psf.gz                Uni3-Terminus20x10.psf.gz
Greek-VGA8.psf.gz                 Uni3-Terminus22x11.psf.gz
Hebrew-Fixed13.psf.gz             Uni3-Terminus24x12.psf.gz
Hebrew-Fixed14.psf.gz             Uni3-Terminus28x14.psf.gz
Hebrew-Fixed15.psf.gz             Uni3-Terminus32x16.psf.gz
Hebrew-Fixed16.psf.gz             Uni3-TerminusBold12x6.psf.gz
Hebrew-Fixed18.psf.gz             Uni3-TerminusBold14.psf.gz
Hebrew-VGA14.psf.gz               Uni3-TerminusBold16.psf.gz
Hebrew-VGA16.psf.gz               Uni3-TerminusBold20x10.psf.gz
Hebrew-VGA8.psf.gz                Uni3-TerminusBold22x11.psf.gz
Lao-Fixed14.psf.gz                Uni3-TerminusBold24x12.psf.gz
Lao-Fixed15.psf.gz                Uni3-TerminusBold28x14.psf.gz
Lao-Fixed16.psf.gz                Uni3-TerminusBold32x16.psf.gz
Lat15-Fixed13.psf.gz              Uni3-TerminusBoldVGA14.psf.gz
Lat15-Fixed14.psf.gz              Uni3-TerminusBoldVGA16.psf.gz
Lat15-Fixed15.psf.gz              Vietnamese-Fixed13.psf.gz
Lat15-Fixed16.psf.gz              Vietnamese-Fixed14.psf.gz
Lat15-Fixed18.psf.gz              Vietnamese-Fixed15.psf.gz
Lat15-Terminus12x6.psf.gz         Vietnamese-Fixed16.psf.gz
Lat15-Terminus14.psf.gz           Vietnamese-Fixed18.psf.gz
Lat15-Terminus16.psf.gz

The setup seems to be done in /etc/default/console-setup, which looks like this:

# A configuration file for setupcon

# Change to "yes" and setupcon will explain what is being doing
VERBOSE_OUTPUT=no

# Setup these consoles.  Most people do not need to change this.
ACTIVE_CONSOLES="/dev/tty[1-6]"

# Put here your encoding.  Valid charmaps are: UTF-8 ARMSCII-8 CP1251
# CP1255 CP1256 GEORGIAN-ACADEMY GEORGIAN-PS IBM1133 ISIRI-3342
# ISO-8859-1 ISO-8859-2 ISO-8859-3 ISO-8859-4 ISO-8859-5 ISO-8859-6
# ISO-8859-7 ISO-8859-8 ISO-8859-9 ISO-8859-10 ISO-8859-11 ISO-8859-13
# ISO-8859-14 ISO-8859-15 ISO-8859-16 KOI8-R KOI8-U TIS-620 VISCII
CHARMAP="UTF-8"

# The codeset determines which symbols are supported by the font.
# Valid codesets are: Arabic Armenian CyrAsia CyrKoi CyrSlav Ethiopian
# Georgian Greek Hebrew Lao Lat15 Lat2 Lat38 Lat7 Thai Uni1 Uni2 Uni3
# Vietnamese.  Read README.fonts for explanation.
CODESET="Lat15"

# Valid font faces are: VGA (sizes 8, 14 and 16), Terminus (sizes
# 12x6, 14, 16, 20x10, 24x12, 28x14 and 32x16), TerminusBold (sizes
# 14, 16, 20x10, 24x12, 28x14 and 32x16), TerminusBoldVGA (sizes 14
# and 16), Fixed (sizes 13, 14, 15, 16 and 18), Goha (sizes 12, 14 and
# 16), GohaClassic (sizes 12, 14 and 16).
FONTFACE="VGA"
FONTSIZE="16"

# You can also directly specify nonstandard font and ACM to load.
# Use space as separator if you want to load more than one font.
# FONT='lat9w-08.psf.gz /usr/local/share/brailefonts/brl-08.psf'
# ACM=/usr/local/share/consoletrans/my_special_encoding.acm


# The following variables describe your keyboard and can have the same
# values as the XkbModel, XkbLayout, XkbVariant and XkbOptions options
# in /etc/X11/xorg.conf.
XKBMODEL="pc105"
XKBLAYOUT="de"
XKBVARIANT="nodeadkeys"
XKBOPTIONS="lv3:ralt_switch"

So what's the deal with the different consolefont-directories and content on Arch vs. Debian/Ubuntu, and where do these Lat15 fonts come from?

Offline

#5 2011-06-27 19:41:36

Master One
Member
From: Europe
Registered: 2007-01-21
Posts: 249

Re: [SOLVED] Console Font (and/or Console Map) mismatch

I have just copied over the Lat15 fonts from Ubuntu to my Arch setup, set CONSOLEFONT to Lat15-Terminus16, and everything finally is working in the console now as supposed to. In addition to all characters shown correctly it is visually much more pleasing than the lat9w-16 output. smile

So the secret to success here is using the right font, and the remaining questions are, why Arch is not using that "console-setup" package known from Debian/Ubuntu, why that package is not even available in AUR, and why these Lat15 fonts are not available for the Arch default console setup method.

BTW I have removed the CONSOLEMAP entry again, as it does not seem to serve any purpose.

Last edited by Master One (2011-06-27 19:43:43)

Offline

#6 2011-06-27 19:45:00

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Console Font (and/or Console Map) mismatch

Master One wrote:

why that package is not even available in AUR.

You could easily do something about that...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2011-06-27 19:54:44

Master One
Member
From: Europe
Registered: 2007-01-21
Posts: 249

Re: [SOLVED] Console Font (and/or Console Map) mismatch

I know, if it were not about the lack in time & experience. The "console-setup" package from Debian/Ubuntu would be a replacement for the actual Arch console-setup method, which is tied into the core setup of Arch (I assume, since it's setup in rc.conf), so an AUR package may not be the way to go anyway. On the other hand, the Arch console-setup method would do, if just the Lat15 fonts were available. I guess it's not much of interest for most users anyway, so copying over just the Lat15 fonts is not a big issue.

Offline

Board footer

Powered by FluxBB