Tiny Core Extensions > TCE Q&A Forum

Fluxbox fonts

(1/3) > >>

aplannan:
 I'm a newbie, not really the audience for TC, but I choose TC because I thought I'd learn more using it (and it erases most of my mistakes if I don't backup!). My setup is actually almost complete (well it will never be complete, what fun would that be.). I only have one thing I can't figure out. I am using tinycore with fluxbox and have been trying to set the fonts fluxbox uses. and have been having some problems. Was wondering if anyone had any advice. Here is the fluxbox wiki page on changing fonts:

http://fluxbox-wiki.org/index.php?title=Change_font

Is tiny core compiled with libxft, is there an extension which includes it? Thought maybe that was my issue.
Changing the font is so minor and unnecessary, but I can't stop trying to do it, so I figured I'd ask for suggestions before I wasted any more hours. Thanks in advance for any help.

curaga:
The base is compiled without Xft, but the library is included. Just load expat2 and fontconfig, and truetype fonts become available to all apps with Xft support.

aplannan:
Thank you curaga,
I have both expat2 and expat2-dev as well as fontconfig and fontconfig-dev, so I should be set there, which means that it is not tiny core. Well, I'll keep trying
Andy

mikshaw:
It would help to know what specific problems you're having, and what you have done to change the fonts.

It's possible that fluxbox itself was compiled without xft support. 

aplannan:
To compile fluxbox I downloaded 1.1.1 tarball from here:
http://www.fluxbox.org/download/
and basically followed the directions here to create an extension:
http://wiki.tinycorelinux.com/tiki-index.php?page=Creating+Extensions#2_Creating_a_tce
I then changed my .xsession file to read:

Xvesa -br -screen 1024x768x32 -shadow -mouse /dev/input/mice,5 -nolisten tcp -I 2>&1 > /dev/null &
[ -x ./.mouse_config ] && ./.mouse_config &
wmpower  &
xset +fp /home/tc/.fonts/ &
exec fluxbox

After that I created a /home/tc/.fonts/directory and downloaded a ttf, copied the fluxbox styles directory to the /home/tc/ directory (so that changes to styles would be saved during a backup) and modified the fluxbox init file so it would use the copied directory. After that I tried changing the fonts section of a style, to the ttf I had downloaded.

I'm pretty sure the font is not the problem. It works fine in Open Office and I used it with pekwm in puppy linux. It is possible that I missed something compiling, I am very new to this. I would be happy to make the fluxbox extension available for anyone to look at, although I'm not sure what the easiest way to do that would be (it is ~5.5MB).

There is another fluxbox wiki page which might be of interest:
http://fluxbox-wiki.org/index.php?title=Howto_install_fonts

I really don't understand everything here. I could not find/ etc/X11/XF86Config or /etc/X11/xorg.conf. Looking at how they changed the fontpath I figured this was being done by etc/fonts/fonts.conf which already had an entry for ~/.fonts/. mkfontdir did not work either, so maybe it has something to do with that. As I mentioned above, Open Office is recognizing the font in ~/.fonts.

Hoping this is useful.

Navigation

[0] Message Index

[#] Next page

Go to full version