You are not logged in.
I've searched wide and far for a answer to this, but alas no luck.
Does anyone know how to (if possible) to use the Dina font in my computers tty?
Cheers
Last edited by Noble (2010-07-17 10:16:23)
Those who give up their liberty for security,
neither deserve liberty nor freedom,
and they will lose both.
- Benjamin Franklin
Offline
Post your rc.conf.
Offline
Err, ok
I have not added any font specific stuff there afaik. The font I want to use is in the "dina-font" when installing with pacman.
Those who give up their liberty for security,
neither deserve liberty nor freedom,
and they will lose both.
- Benjamin Franklin
Offline
> I have not added any font specific stuff there afaik.
And that's the problem.
CONSOLEFONT=
Why is it empty?
I have
CONSOLEFONT="Lat2-Terminus16.psfu.gz"
Offline
The font I want to use is an xfont I think, is it possible to use that one in the ttys?
Those who give up their liberty for security,
neither deserve liberty nor freedom,
and they will lose both.
- Benjamin Franklin
Offline
Dina is a monospace bitmap font
. It should work fine in TTYs
Offline
Ok, I might be missing something obvious here, but it does not work work specifying "dina", "Dina" or the full path to dina.fon in CONSOLEFONT=
Those who give up their liberty for security,
neither deserve liberty nor freedom,
and they will lose both.
- Benjamin Franklin
Offline
IIRC .fon is for Windows ...
Did you install it via 'pacman -S dina-font'?
Offline
Yes, but I have also downloaded the font from their webpage and tried that one.
What do you write in your CONSOLEFONT for the dina font to work? It works fine in urxvt, and any x-application, however I want it in my vc as well
Those who give up their liberty for security,
neither deserve liberty nor freedom,
and they will lose both.
- Benjamin Franklin
Offline
This bug should be fixed http://bugs.archlinux.org/task/19109
But I've tried to set Dina via setfont and get an error "bad input file size".
Edit: You can check for yourself
http://wiki.archlinux.org/index.php/Fonts#Console_fonts
http://www.archlinux.org/packages/commu … dina-font/
Last edited by karol (2010-07-14 02:56:29)
Offline
As far as I know, no version of the Dina font exists for the linux console, but you could certainly make one yourself. Note that you may actually be happier with terminus, which comes in many sizes and flavors for the linux console. These can be installed via the terminus-font package available through pacman, and then you can see a list of them with 'ls /usr/share/kbd/consolefonts'. I personally use ter-116n.
Last edited by Square (2010-07-14 03:01:22)
Offline
I see. What is the difference between all the terminus versions? Is it safe to use all of them with any keyboard?
Those who give up their liberty for security,
neither deserve liberty nor freedom,
and they will lose both.
- Benjamin Franklin
Offline
Check out my blog post:
Here is what you need:
Dina-font (fon file)
psftools
Download and extract Dina.zip.
Run the following in the directory where you extracted Dina.zip:
$> fon2fnts Dina.fon
Which will extract the fnt's from the fon package. Now you'll need to convert one of the fnt's to a psf which is what is used in the console:
$> fnt2psf Dina_8.fnt Dina-8.psf
Now copy the resulting Dina-8.psf to /usr/share/kbd/consolefonts/ and close down X.
Test out the font with $> setfont Dina-8
As you can see it's not perfect since the converted Dina font can't handle box drawing glyphs. My best guess is that it is an unicode problem. Haven't figured that one out yet.
Ashren
http://archlinux.me/edgar/2009/07/23/us … sole-font/
Perhaps this could lead you in the right direction.
Last edited by Ashren (2010-07-14 11:34:07)
Offline
Thank you, now I have something to work with
Is it possible to set the font at system startup, so that the whole boot process is in that font? Does it require kernel recompilation?
Those who give up their liberty for security,
neither deserve liberty nor freedom,
and they will lose both.
- Benjamin Franklin
Offline
so that the whole boot process is in that font
I think you mean early KMS start - it's in the wiki.
Offline
Hmm. When I try to rebuild the image I get an error: consolefont: Font file does not exist or does not end with .psf.gz or .psfu.gz.
I've set CONSOLEFONT="Lat2-Terminus16.psfu.gz" in rc.conf
Check quoute below for details
==> Building image "default"
==> Running command: /sbin/mkinitcpio -k 2.6.34-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26.img
:: Begin build
:: Parsing hook [base]
:: Parsing hook [udev]
:: Parsing hook [autodetect]
:: Parsing hook [pata]
:: Parsing hook [scsi]
:: Parsing hook [sata]
:: Parsing hook [filesystems]
:: Parsing hook [consolefont]
consolefont: Font file does not exist or does not end with .psf.gz or .psfu.gz.
:: Generating module dependencies
:: Generating image '/boot/kernel26.img'...SUCCESS
==> SUCCESS
==> Building image "fallback"
==> Running command: /sbin/mkinitcpio -k 2.6.34-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26-fallback.img -S autodetect
:: Begin build
:: Parsing hook [base]
:: Parsing hook [udev]
:: Parsing hook [pata]
:: Parsing hook [scsi]
:: Parsing hook [sata]
:: Parsing hook [filesystems]
:: Parsing hook [consolefont]
consolefont: Font file does not exist or does not end with .psf.gz or .psfu.gz.
:: Generating module dependencies
:: Generating image '/boot/kernel26-fallback.img'...SUCCESS
==> SUCCESS
Those who give up their liberty for security,
neither deserve liberty nor freedom,
and they will lose both.
- Benjamin Franklin
Offline
I renamed the file because of a bug. I'm not sure if it's needed anymore.
Edit: I think it was that bug http://bugs.archlinux.org/task/19109
Sorry I forgot to add it was a hack of mine, I only used it as an example.
You should pick some regular fonts - the ones included in the terminus package:
pacman -Ql terminus-font | less
Last edited by karol (2010-07-17 02:29:48)
Offline
I removed psfu.gz from my font in rc.conf and mkinitcpio built the image sucsessfully
CONSOLEFONT="Lat2-Terminus16"
Those who give up their liberty for security,
neither deserve liberty nor freedom,
and they will lose both.
- Benjamin Franklin
Offline
<thumbs up>
Sorta [solved]?
Offline
Aye! Thanks.
Those who give up their liberty for security,
neither deserve liberty nor freedom,
and they will lose both.
- Benjamin Franklin
Offline