You are not logged in.

#1 2010-09-09 15:30:01

wolfspaw
Member
Registered: 2010-08-28
Posts: 15

[Solved]How to use consolas font in Arch?

Hi Archers,

I read the Fonts Arch Wiki.

I got ttf-vista-fonts (from the AUR) and i know i have the font because i can choose it in Gvim.

In my rc.conf i putted: CONSOLEFONT="consolas" but it fails loading (i see FAIL in the booting process)
i also tried to put a full path "/usr/share/fonts/TTF/consola.ttf"
and also tried "consola.ttf" but it didnt work.

using setfont [font in the /usr/share/fonts/TTF/]  (example: setfont /usr/share/fonts/TTF/consola.ttf ) didn't work too.

I also noted there are various consola's font: consolai, consolab, consolaz . So i must be in the wrong directory.

In the "normal" fonts directory indicated in the wiki there are only psfu.gz fonts.

I also want to change the size of the font ( like i do in gvim, setting the font size to 12 ppt for example), the psfu.gz
fonts have their sizes in their names. But it seems the TTF do not...

What should i put in my rc.conf to use consolas font, and how can i especify the size?

Thanks in advance.

Last edited by wolfspaw (2010-09-09 16:52:52)

Offline

#2 2010-09-09 15:32:35

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [Solved]How to use consolas font in Arch?

putting those fonts in ~/.fonts will allow the user to use that font

You can do the same for root user.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2010-09-09 15:47:41

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [Solved]How to use consolas font in Arch?

The console doesn't understand TTF fonts. You're trying to put a square peg in a round hole.

Offline

#4 2010-09-09 16:39:52

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: [Solved]How to use consolas font in Arch?

As falconindy said the linux console dont use ttf. But if you want to use consolas (or other TTF font) in the virtual terminal you can use the FbTerm http://code.google.com/p/fbterm/ its use fontconfig+freetype2 to draw the text so you can select any font that fontconfig+freetype2 handle (ttf, otf, pfb...)

Offline

#5 2010-09-09 16:52:22

wolfspaw
Member
Registered: 2010-08-28
Posts: 15

Re: [Solved]How to use consolas font in Arch?

thanks!, that solves my font issue.

Offline

Board footer

Powered by FluxBB