How to fix bdf or pcf fonts that cannot be used by xft

I installed dina-fonts from the aur after reading about it. It installed fine and I’m able to use it as the font in rxvt if i set this:

urxvt.font: -*-dina-medium-r-normal-*-13-*-*-*-*-*-iso8859-1

But the font wont work if I use it with xft, of from other GUI apps. For example, open office lists dina_r400-13.bdf.pcf.gz as of the available fonts. But selecting them shows another font instead (Monospace). I googled for the problem, and found this two threads:
Why can I not use Dina-font as a Xft font?(SOLVED)
Dina for Linux/X11 – solved
Basically, the problem is that the font does not have the correct headers needed by xft in them. The solution is simple, convert the font into bdf, and then add the needed header manually. There are two ways to convert them into bdf. If you have the original .fon files and wine, you can use the fon2bdf tool. Or you can use pcf2bdf to convert them from pcf.
After that open the bdf file in a text editor (I use vim) and add the correct header according to the second thread.
Here’s the wikipedia page for reference, look under the X Window Properties heading: Glyph Bitmap Distribution Format on Wikipedia
You also need to fix these lines:

SIZE -1 96 96 # these should be SIZE $(POINT_SIZE/10) RESOLUTION_X RESOLUTION_Y
SIZE 10 96 96 # Example for a font with POINT_SIZE 100
#and also
STARTPROPERTIES 10 # this is the number of lines between STARTPROPERTIES and ENDPROPERTIES
STARTPROPERTIES 14 # my dina-font has these many properties

If there is a lot of files to fix then this fixbdf.py python script by Jay Bromley could be used to add the missing property – thank you very much for providing the script, I uploaded the script so it would be easier to get for other people, the link is http://www.sendspace.com/file/fkrzo6 just in case. Unfortunately it did not fix the SIZE line and set the number of properties in STARTPROPERTIES wrong for me. So I had to change them manually.
After that you could use the fonts as bdf fonts or convert them into pcf fonts using bdftopcf.

Kuliaaaah agaaain

wooowoooo…

Mulai juga ne kuliah.

Tapi bener deh lieur. perwalian online, bikin lieur, pilih kelas yang mana, bikin lieur, mana gw salah daftar kelas pula.. kacaw be ge te deh.. mesti pe er es pula jadinya. Heuu heuuu. Tapi gapapa, dengan semangat dan keteguhan hati ku yakin bisa melalui perkuliahan ini dengan lebih baik lagi..

Hmm, continuing from my last post about installing arch linux on my laptop. Ive installed the whole system, the wireless part was easy actually, only needed to download the tarball for broadcom-wl and then do makepkg to compile them. After that it’s only a matter of starting wpa_supplicant with the correct config. Ive managed to set netcfg to start wireless on boot using the example config, i pointed netcfg to use my wpa_supplicant.conf. The only trouble i have is when I use this laptop in a net cafe somewhere. I use wifi-select to create a new profile, and then append DHCLIENT=yes to the profile (later, I will edit the script so it adds the line automatically) and run it manually using netcfg $PROFILE (might not be needed once i add DHCLIENT=yes to the default profile made by wifi-select). And then commenting a few entry in etc/resolv.conf, since Ive set up a dnsmasq for dns caching using my ISP dns server.

Awesome was pretty easy to install,I only needed to set the volume widget, copying from awesome wiki, and changin the key binding syntax to awesome 3.3 syntax. The only thing quite confusing was how to set the wallpaper. Apparently awsetbg needed feh (or other program to set the bg). Everything was working quite smooth actually. Including dual screen with xrandr.

My application choices is firefox for browsing,

mpd+ncmpc for music playing.

geeqie + comix + feh +imagemagick for image viewing depend on the image

Im using pidgin for IM and weechat for IRC.

I used to use screen in ubuntu (using byobu / screen-profile). But I rarely use it here in arch, I could always adds a new term on another tag, so I didnt have a need for it yet.

The term im using is urxvt-256colors, using a zenburn scheme i got from the forums, edited to add ‘fake’ transparency.

Last thing I did was installing fish, I have only read about it, but curiosity got to me. For now I really like it, some conventions are different with bash, so most of my scripts still use bash or sh, but for my general use im using fish. I did not change my shell into fish though, it’s still bash. I run urxvt -e /usr/bin/fish so that urxvt uses fish. Really like its default colorscheme and tab completion, cos I didnt know how to set bash to do what i want.

Hmm, for the next post maybe I’ll add a tutorial on the steps and the configs I use to install arch here.

so many choices to make..

aaaaaagh.. okay, this is my first post here, dan binuuun maw ngebahas apah..

let see let see, akhirnya memutuskan untuk pake WP juga sebagai tempat nge-blog, dah sempet daftar ke LJ, tapi sistemnya yang ada friend2 semacam FB gitu membuatku malas.

Kenapa begitu banyak pilihan yaach..?? buat blogging ada Blogger.com, WP, LJ, tumblr, ga keitung.. in the end i chose WP’s clean interface over the others, i hope I made the right choice. Now then, the next thing im still undecided is browser. I could choose QTWeb, K-Meleon or Firefox for my windows box. Ive been using QTWeb for some time, but it had a problem with wordpress redirects. And then there’s K-Meleon, it’s nice,  WP works (infact im using K-Meleon to post this one), but i have yet to see any advantage over the others. And then there’s Firefox. I guess it’s still the best, with dozens of important addons, works for every website, nice history autocomplete in the toolbar. I just wished it has a better keyboard interface. Luckily I found vimperator for firefox, I really like it’s vi-like interface (duh, it’s called vimperator), just need a little practice a bit. The thing with vimperator is that the status bar is missing if i went to fullscreen mode (F11)
, havent googled for it though, perhaps it’s fixable. Now, in then, after trying QTWeb and K-Meleon, i think im going back to firefox. Oh Well.

So what is there left for me to choose. Hmm, My Linux Box of course.. I wanted to install Arch, but I have to wait for a new harddisk first, cos i want a backup of my kubuntu install, just in case. Now, im still confused over the installation process, had been trying to install using qemu, but since the hardware is different, i guess there isn’t much point in it then. Since my laptop’s ethernet fried, then I’ll need to install a broadcom-wl driver for it. I have downloaded the files, and read the instructions, it’s only a matter of trying it for real. And then there’s wpa_supplicant, using wpa_supplicant is very easy actually, i had expected it to be harder. I tried using wpa_supplicant to configure my wireless after turning off the nm-applet (on kubuntu). Some tutorials said to enter lots of things in the conf, but it did not work if i do that. Perhaps my setup need different configuration. And then I read the docs, decided to try the default settings, so I only entered ESSID and key, and it worked like a charm. I hope it would be that smooth when I install arch later.

That reminds me, I need to make a checklist of things to do after installing arch.

Install:

Vim

Mutt

a WM (dwm, wmii, awesome, still undecided)

a filemanager (mc, vifm, hmm.. what should i use)

irssi

finch, or bitlbee if there’s a fix for ym protocol 16

aria2c

pure-ftp

comix, or other picture browser (really liked gwenview, but im trying to avoid kdelibs)

Firefox with vimperator, downthemall, adblockplus, twitterfox, identifox

python

ruby for dependencies (i dont remember though)

QT, GTK

lots of VCS/DVCS (hg, git, bzr, svn, cvs. or i might not need cvs)

office suite (OO.o i think)

on my kubuntu installation i had installed koffice, i wanted to try krita and karbon, but already used to gimp and inkscape, so i havent had the chance to try them. I wonder if i’ll install koffice again or not. but since im not going to use kde then i’ll try not to install the kdelibs.

Hmm, I think that’s enough for now. Im going to practice using vimperator again.. huaahahahha..