Bradley Reed wrote:
> I was wondering what is the best way to change a font in e16. Right now
> I am using the default winter theme and I wanted to change the menu
> font. (I am using a very recent 0.16.8.5 cvs version, eesh version says
> code is current to 17:56:57 on 15 Oct 2006.)
> 
> I copied fonts.cfg to $HOME/.e16/fonts.cfg and saw that font-menu was
> defined as "Vera/7". I can easily change the font size by changing it
> to say "Vera/8" but cannot seem to get e16 to recognize other fonts.
> 
> Where is e16 looking for font aliases? Should I be trying something
> like "DejaVuSansCondensed/7" or like "DejaVu\ Sans\ Condensed/7" or like
> "-xos4-terminus-medium-*-*-*-14-*-*-*-*-*-iso10646-1"?
> 
Just added to README-0.16.8:

Fonts
-----
The fonts in the default theme (winter) and core themes (BlueSteel,
BrushedMetal-Tigert, Ganymede, and ShinyMetal) are configured (indirectly)
in fonts.cfg. Directory search order is (typically):
~/.e16, <theme-dir>, and /usr/share/e16/config/fonts.cfg).
Other themes are likely to have font references more or less scattered 
around
in TextClass definitions in the theme configuration files.

There are three different ways to specify a font:

1) "<font name>/<size>", e.g. "Vera/8".
In this case e16 must be able to find "Vera.ttf" in its TrueType font path.
The e16 default TrueType font path is <theme dir>/ttfont, additional paths
may be given via the theme.ttfont_path configuration setting.

2) XLFD font sets, e.g. 
"-*-lucida-medium-r-normal-*-12-120-*-*-*-*-*-*,-*-gulim*-medium-r-normal-*-12-120-*-*-*-*-ksc5601.1987-*".
xfontsel, xlsfonts, and xfd can be used to select and show these fonts.

3) Fontconfig font names, e.g. "Luxi Sans-10:bold".
fc-list and xfd can be used to select and show these fonts.
NB! This possibility (Xft support) was added after the 0.16.8.4 release.


Like it says, Xft support was just added and may not be 100% sane/solid.
Please let me know if you find problems with it.

/Kim


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to