Ok. I've looked inIt needs the locale to be set correctly but also the font must support the swedish letters. On the console I use the terminus font. I have configured that in /etc/rc.conf by
With that font I can read swedish letters, even without X11.Code:# VT font allscreens_flags="-f terminus-u28b"
zoor@FreeBSD-dell:/usr/share/vt/fonts $ ls
INDEX.fonts spleen-6x12.fnt vgarom-8x16.fnt
gallant.fnt spleen-8x16.fnt vgarom-8x8.fnt
spleen-12x24.fnt terminus-b32.fnt vgarom-thin-8x16.fnt
spleen-16x32.fnt tom-thumb.fnt vgarom-thin-8x8.fnt
spleen-32x64.fnt vgarom-16x32.fnt
spleen-5x8.fnt vgarom-8x14.fnt
zoor@FreeBSD-dell:/usr/share/vt/fonts $
I cannot see it when I search either.zoor@FreeBSD-dell:/usr/share/vt/fonts $ sudo pkg search terminus
Password:
puppetdb-terminus7-7.20.1 PuppetDB storeconfigs backend terminus module
puppetdb-terminus8-8.8.1 PuppetDB storeconfigs backend terminus module
terminus-font-4.49.1_1 Terminus Font - a clean fixed width font
terminus-ttf-4.49.3 Terminus Font - a clean fixed width font (TTF version)
zoor@FreeBSD-dell:/usr/share/vt/fonts $
Installed spleen. The terminus font was already the mosts recent version on my computer apparently?
zoor@FreeBSD-dell:~ $ sudo pkg update
Password:
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
zoor@FreeBSD-dell:~ $ sudo pkg install x11-fonts/terminus-font
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
zoor@FreeBSD-dell:~ $ sudo pkg install x11-fonts/spleen
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 2 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
spleen-font: 2.1.0
Installed packages to be REINSTALLED:
opencv-4.9.0_6
Number of packages to be installed: 1
Number of packages to be reinstalled: 1
172 KiB to be downloaded.
Proceed with this action? [y/N]: y
[1/1] Fetching spleen-font-2.1.0.pkg: 100% 172 KiB 175.8kB/s 00:01
Checking integrity... done (0 conflicting)
[1/2] Installing spleen-font-2.1.0...
[1/2] Extracting spleen-font-2.1.0: 100%
[2/2] Reinstalling opencv-4.9.0_6...
[2/2] Extracting opencv-4.9.0_6: 100%
zoor@FreeBSD-dell:~ $ ls /usr/share/vt/fonts/
INDEX.fonts spleen-6x12.fnt vgarom-8x16.fnt
gallant.fnt spleen-8x16.fnt vgarom-8x8.fnt
spleen-12x24.fnt terminus-b32.fnt vgarom-thin-8x16.fnt
spleen-16x32.fnt tom-thumb.fnt vgarom-thin-8x8.fnt
spleen-32x64.fnt vgarom-16x32.fnt
spleen-5x8.fnt vgarom-8x14.fnt
zoor@FreeBSD-dell:~ $
It has been "terminus-u28b" which is one of the fonts in /usr/share/vt/fonts. On my system there are actually fonts as below:Is terminus-b32 similair as the suggested terminus version in the previous message?
> ls /usr/share/vt/fonts/
gallant.fnt spleen-8x16.fnt terminus-u16b.fnt terminus-u22b.fnt terminus-u32n.fnt vgarom-thin-8x16.fnt
INDEX.fonts terminus-b32.fnt terminus-u16n.fnt terminus-u22n.fnt tom-thumb.fnt vgarom-thin-8x8.fnt
spleen-12x24.fnt terminus-u12b.fnt terminus-u16v.fnt terminus-u24b.fnt u28b-6.fnt
spleen-16x32.fnt terminus-u12n.fnt terminus-u18b.fnt terminus-u24n.fnt vgarom-16x32.fnt
spleen-32x64.fnt terminus-u14b.fnt terminus-u18n.fnt terminus-u28b.fnt vgarom-8x14.fnt
spleen-5x8.fnt terminus-u14n.fnt terminus-u20b.fnt terminus-u28n.fnt vgarom-8x16.fnt
spleen-6x12.fnt terminus-u14v.fnt terminus-u20n.fnt terminus-u32b.fnt vgarom-8x8.fnt
> pkg info|grep -i terminus
terminus-font-4.49.1_1 Terminus Font - a clean fixed width font
vidcontrol -f /usr/share/vt/fonts/spleen-16x32.fnt
> sysctl kern.vty
kern.vty: vt
Thanks for your long reply.It has been "terminus-u28b" which is one of the fonts in /usr/share/vt/fonts. On my system there are actually fonts as below:
I have installedCode:> ls /usr/share/vt/fonts/ gallant.fnt spleen-8x16.fnt terminus-u16b.fnt terminus-u22b.fnt terminus-u32n.fnt vgarom-thin-8x16.fnt INDEX.fonts terminus-b32.fnt terminus-u16n.fnt terminus-u22n.fnt tom-thumb.fnt vgarom-thin-8x8.fnt spleen-12x24.fnt terminus-u12b.fnt terminus-u16v.fnt terminus-u24b.fnt u28b-6.fnt spleen-16x32.fnt terminus-u12n.fnt terminus-u18b.fnt terminus-u24n.fnt vgarom-16x32.fnt spleen-32x64.fnt terminus-u14b.fnt terminus-u18n.fnt terminus-u28b.fnt vgarom-8x14.fnt spleen-5x8.fnt terminus-u14n.fnt terminus-u20b.fnt terminus-u28n.fnt vgarom-8x16.fnt spleen-6x12.fnt terminus-u14v.fnt terminus-u20n.fnt terminus-u32b.fnt vgarom-8x8.fnt
But I am not sure if this package provides the vt fonts. The documentation mentions X11 only.Code:> pkg info|grep -i terminus terminus-font-4.49.1_1 Terminus Font - a clean fixed width font
EDIT: I think to install the Terminus vt-fonts I have followed https://forums.freebsd.org/threads/small-fonts-file-suitable-for-boot-console-use-with-vt.69106/
It is possible to use vidcontrol(1) as root to change the font during a login. I have tried
With that font I can read the swedish characters.Code:vidcontrol -f /usr/share/vt/fonts/spleen-16x32.fnt
If that does not work please check if the console driver is set to "vt" using sysctl(8). It should be as below.
In the very past the default has been "sc". It has been changed to "vt" years ago. The fonts in your /etc/rc.conf are listed in /usr/share/syscons/fonts/. May be your system still uses the old console driver.Code:> sysctl kern.vty kern.vty: vt
zoor@FreeBSD-dell:/usr/share/vt/fonts $ sudo vidcontrol -f /usr/share/vt/fonts/spleen-16x32.f
nt
vidcontrol: getting active vty: Inappropriate ioctl for device
zoor@FreeBSD-dell:/usr/share/vt/fonts $
keymap="se"
me:\
:charset=UTF-8:\
:lang=sv_SE.UTF-8:
$ locale
LANG=sv_SE.UTF-8
LC_CTYPE="sv_SE.UTF-8"
LC_COLLATE="sv_SE.UTF-8"
LC_TIME="sv_SE.UTF-8"
LC_NUMERIC="sv_SE.UTF-8"
LC_MONETARY="sv_SE.UTF-8"
LC_MESSAGES="sv_SE.UTF-8"
LC_ALL=
for instance the swedish letters å ä ö and also special characters like "~" is not possible in any terminal-editor.
Section "InputClass"
Identifier "Keyboard1"
MatchIsKeyboard "on"
Option "XkbLayout" "se"
EndSection