manac ham chơi

8 January, 2007

HOWTO change gnome-foot into ubuntu logo

Filed under: linux-unix — manac @ 2:39 pm


sudo cp /usr/share/pixmaps/gnome-logo-icon-transparent.png /usr/share/pixmaps/gnome-logo-icon-transparent.png.bak
sudo cp /usr/share/hwdb-client/ubuntu_logo.png /usr/share/pixmaps/gnome-logo-icon-transparent.png
killall gnome-panel

cp *.svg  /usr/share/icons/yourtheme/scalable/places/distributor-logo.svg

Install True Type Fonts: Using a Font Server

Filed under: linux-unix — manac @ 2:15 pm

You can add your own fonts and sharing them by putting them into /usr/local/share/fonts/truetype. You need to run a couple of commands to make them available to X:
# cd /usr/local/share/fonts
# mkdir truetype
# chmod go+rx truetype
# cd truetype
# wget http://www.children2children.net/promos/fonts/kidprint.zip
# unzip kidprint.zip
# rm kidprint.zip
# mkfontscale (or ttmkfdir -o fonts.scale ?????)
# mkfontdir

You need to add the path to the catalogue entry in /etc/X11/fs/config:
/usr/local/share/fonts/truetype/

A couple of other paths that should also be included there for the defoma package managed fonts to be available are:
/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID/
/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType/

7 January, 2007

xterm default fonts (TrueType)

Filed under: linux-unix — manac @ 6:11 am

To use TrueType fonts in your xterm windows, you need to set XTerm*faceSize and XTerm*faceName attributes in your ~/.Xresource file. The XTerm*faceName attribute is used to specify the default font; XTerm*faceSize specifies the default font size.

Sample ~/.Xresources parameters for TrueType use:

XTerm*faceName: Bitstream Vera Serif Mono

XTerm*faceSize: 11

The fallback TrueType font for xterm use is Bitstream Vera Sans Mono. Font settings for a particular xterm window can be overridden using the -fs (size) and -fa (face) flags to xterm.

*NOTE*: do NOT use quotes around the font faceName; they will cause your font specification to fail and fall back to the fallback font.

Some available monospaced TrueType fonts available for use in xterm windows:

* Bitstream Vera Sans Mono

* Lucida Console

* QuickType II Mono

* Courant

* Courier New

* SimSun

–> http://www.cs.wisc.edu/twiki/bin/view/CSDocs/XWindowFAQs#xterm default fonts (_TrueType)

Create a free website or blog at WordPress.com.