[kmscon-devel] Setting Font Name & Size

John Magolske listmail at b79.net
Mon May 19 22:41:36 PDT 2014


Hi,

* David Herrmann <dh.herrmann at gmail.com> [140512 23:19]:
> On Tue, May 13, 2014 at 6:30 AM, John Magolske <listmail at b79.net> wrote:
> >
> >     # kmscon --font-name sgiscreen-9x20
> >     # kmscon --font-name sgiscreen-9x20 --font-size 20 --font-dpi 72
> >
> > ...does not load. I'm wondering what directory to drop this bdf file
> > in and what commands to run to have it recognized & loaded by kmscon.
> 
> It highly depends on the font-backend you use. 

To load any font other than the included unifont and 8x16 fonts, is
there a font-backend option other than pango?

> The default is "pango", in which case it's the same you would use to
> configure GTK+ or most of your browsers.

Thanks for cluing me in on GTK+. With that, some searching brought me
to this page: http://shallowsky.com/blog/linux/font-mysteries.html
which helped me figure out a solution:

Remove the 70-no-bitmaps.conf symlink:

    # rm /etc/fonts/conf.d/70-no-bitmaps.conf                                                              

create a symlink to 70-yes-bitmaps.conf :

    # ln -s /usr/share/fontconfig/conf.avail/70-yes-bitmaps.conf\ 
      /etc/fonts/conf.d/70-yes-bitmaps.conf

run fc-cache again (seems to work without the -f "Force" option,
but left it in there for good measure):

    % fc-cache -fv 

Now the font shows up with fc-list:

    % fc-list | grep sgi
    /usr/share/fonts/X11/misc/sgiscreen-9x20.bdf: Screen:style=Regular

and it loads fine when invoking it with kmscon:

    # kmscon --font-name Screen 

(BTW, this is all on Debian Sid)

> To test pango itself, try this:
>   pango-view --font="Terminus Bold" kmscon/docs/unicode-test.txt

Good to know!

Regards,

John

-- 
John Magolske
http://B79.net/contact


More information about the kmscon-devel mailing list