You are not logged in.

#1 2010-07-13 20:57:07

Noble
Member
Registered: 2010-06-01
Posts: 63

[SOLVED] Use the "Dina" font in the tty (vc)

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

#2 2010-07-13 21:00:48

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Use the "Dina" font in the tty (vc)

Post your rc.conf.

Offline

#3 2010-07-13 21:31:35

Noble
Member
Registered: 2010-06-01
Posts: 63

Re: [SOLVED] Use the "Dina" font in the tty (vc)

Err, ok smile

http://codepad.org/yQGdzUo9

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

#4 2010-07-13 21:43:43

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Use the "Dina" font in the tty (vc)

> 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

#5 2010-07-14 00:42:03

Noble
Member
Registered: 2010-06-01
Posts: 63

Re: [SOLVED] Use the "Dina" font in the tty (vc)

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

#6 2010-07-14 00:54:14

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

Re: [SOLVED] Use the "Dina" font in the tty (vc)

Dina website wrote:

Dina is a monospace bitmap font

. It should work fine in TTYs

http://www.donationcoder.com/Software/Jibz/Dina/


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2010-07-14 01:35:42

Noble
Member
Registered: 2010-06-01
Posts: 63

Re: [SOLVED] Use the "Dina" font in the tty (vc)

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

#8 2010-07-14 01:42:46

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Use the "Dina" font in the tty (vc)

IIRC .fon is for Windows ...
Did you install it via 'pacman -S dina-font'?

Offline

#9 2010-07-14 02:11:54

Noble
Member
Registered: 2010-06-01
Posts: 63

Re: [SOLVED] Use the "Dina" font in the tty (vc)

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 big_smile


Those who give up their liberty for security,
neither deserve liberty nor freedom,
and they will lose both.
- Benjamin Franklin

Offline

#10 2010-07-14 02:26:11

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Use the "Dina" font in the tty (vc)

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

#11 2010-07-14 03:00:32

Square
Member
Registered: 2008-06-11
Posts: 435

Re: [SOLVED] Use the "Dina" font in the tty (vc)

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

#12 2010-07-14 11:13:35

Noble
Member
Registered: 2010-06-01
Posts: 63

Re: [SOLVED] Use the "Dina" font in the tty (vc)

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

#13 2010-07-14 11:24:38

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: [SOLVED] Use the "Dina" font in the tty (vc)

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

#14 2010-07-17 01:33:06

Noble
Member
Registered: 2010-06-01
Posts: 63

Re: [SOLVED] Use the "Dina" font in the tty (vc)

Thank you,  now I have something to work with smile

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

#15 2010-07-17 01:36:35

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Use the "Dina" font in the tty (vc)

Noble wrote:

so that the whole boot process is in that font

I think you mean early KMS start - it's in the wiki.

Offline

#16 2010-07-17 02:17:45

Noble
Member
Registered: 2010-06-01
Posts: 63

Re: [SOLVED] Use the "Dina" font in the tty (vc)

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

#17 2010-07-17 02:21:09

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Use the "Dina" font in the tty (vc)

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

#18 2010-07-17 10:04:50

Noble
Member
Registered: 2010-06-01
Posts: 63

Re: [SOLVED] Use the "Dina" font in the tty (vc)

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

#19 2010-07-17 10:05:56

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Use the "Dina" font in the tty (vc)

<thumbs up>
Sorta [solved]?

Offline

#20 2010-07-17 10:18:31

Noble
Member
Registered: 2010-06-01
Posts: 63

Re: [SOLVED] Use the "Dina" font in the tty (vc)

Aye! Thanks.


Those who give up their liberty for security,
neither deserve liberty nor freedom,
and they will lose both.
- Benjamin Franklin

Offline

Board footer

Powered by FluxBB