Goal of this project - to port my decorative font from Windows to Linux. My font for Windows could be downloaded there in .FON format: http://tangar.info/wp-content/uploads/2 ... 16X24X.FON
Its large (16x24) font and it looks like this: http://tangar.info/wp-content/uploads/2 ... font-1.jpg
Lets start:
1) Linux uses the PCF format for bitmap font files.
2) At Linux TomeNets' client fonts can't be found at game directory. TomeNet using system bitmap fonts which could be found there (at Ubuntu):
/usr/share/fonts/X11/misc/..
3) windows' client fonts have .FON format and could be edited with Fony - http://hukka.ncn.fi/?fony
4) I've read that its impossible to convert .FON to PCF directly, but we could save .FON file in Fony as .bdf and then convert .bdf to PCF
you could download .bdf which I converted there - http://tangar.info/wp-content/uploads/2 ... 16x24x.bdf
5) Now we need to convert .BDF to PCF. There is a special command:
http://manpages.ubuntu.com/manpages/nat ... pcf.1.html
bdftopcf 16x24x.bdf > 16x24x.pcf
But font become glitched. When you convert it - it becomes 12 pixels high (not 24 as it has to be):
https://lh3.googleusercontent.com/-Mwm- ... ftopcf.jpg
I've tried different options (-o, -i and others) its the same
Information about PCF format:
https://fontforge.github.io/pcf-format.html
http://fontforge.github.io/en-US/docume ... cf-format/
6) I found Linux bitmap editor to create PCF font from zero - gbdfed http://sofia.nmsu.edu/~mleisher/Software/gbdfed/ hope I'll be able to convert bdf there
---
update:
it seems bdf was converted right at step 5 everything is fine, FontForge just had a glitch of displaying PCF font.
[complete] "TomeNet fonts @ Linux" project
[complete] "TomeNet fonts @ Linux" project
Last edited by tangar on Tue Mar 22, 2016 7:50 pm, edited 3 times in total.
Tangar's tileset, addon, guides & maps: English TomeNET page ||||||| Russian TomeNet page
http://youtube.com/GameGlaz — streams in English // http://youtube.com/StreamGuild — streams in Russian
My chars @ angband.oook.cz
http://youtube.com/GameGlaz — streams in English // http://youtube.com/StreamGuild — streams in Russian
My chars @ angband.oook.cz
Re: "TomeNet fonts @ Linux" project
Solved Example screenshot
Download my 16x24 font for Linux: http://tangar.info/wp-content/uploads/2 ... 16x24t.pcf
How to install:
1) make sure that you use bitmap fonts (source: https://wiki.ubuntu.com/Fonts ). use terminal:
cd /etc/fonts/conf.d/
sudo rm /etc/fonts/conf.d/10* && sudo rm -rf 70-no-bitmaps.conf && sudo ln -s ../conf.avail/70-yes-bitmaps.conf .
sudo dpkg-reconfigure fontconfig
2) create folder .fonts at your home/<user> directory and copy there 16x24t.pcf (to show hidden files use ctrl+h). So you would have: /home/<user>/.fonts
3) use terminal
cd home/<user>/.font
mkfontdir
xset fp+ /home/<user>/.fonts
4) change font in TomeNet to 16x24t and enjoy! also you could use this font in terminal:
xterm -fn 16x24t
How to convert .FON to Linux format:
1) use Fony - http://hukka.ncn.fi/?fony to save your .FON file as .bdf
2) load Linux, open terminal, cd to folder with .bdf file and use command:
bdftopcf <name>.bdf > <name>.pcf
I wanna say big thanks to C.Blue and Mikaelh for help with installing TomeNet at Linux and Mark Leisher, author of gbdfed (font editor program for Linux) for help and consultations about font formats!
p.s.
Also Mark noticed that converted PCF file a bit wrong:
Download my 16x24 font for Linux: http://tangar.info/wp-content/uploads/2 ... 16x24t.pcf
How to install:
1) make sure that you use bitmap fonts (source: https://wiki.ubuntu.com/Fonts ). use terminal:
cd /etc/fonts/conf.d/
sudo rm /etc/fonts/conf.d/10* && sudo rm -rf 70-no-bitmaps.conf && sudo ln -s ../conf.avail/70-yes-bitmaps.conf .
sudo dpkg-reconfigure fontconfig
2) create folder .fonts at your home/<user> directory and copy there 16x24t.pcf (to show hidden files use ctrl+h). So you would have: /home/<user>/.fonts
3) use terminal
cd home/<user>/.font
mkfontdir
xset fp+ /home/<user>/.fonts
4) change font in TomeNet to 16x24t and enjoy! also you could use this font in terminal:
xterm -fn 16x24t
How to convert .FON to Linux format:
1) use Fony - http://hukka.ncn.fi/?fony to save your .FON file as .bdf
2) load Linux, open terminal, cd to folder with .bdf file and use command:
bdftopcf <name>.bdf > <name>.pcf
I wanna say big thanks to C.Blue and Mikaelh for help with installing TomeNet at Linux and Mark Leisher, author of gbdfed (font editor program for Linux) for help and consultations about font formats!
p.s.
Also Mark noticed that converted PCF file a bit wrong:
but it still worksThe SWIDTH values are wrong. They should be 500 instead of 1152. And
FONTBOUNDINGBOX should be 16 24 0 -5.
Tangar's tileset, addon, guides & maps: English TomeNET page ||||||| Russian TomeNet page
http://youtube.com/GameGlaz — streams in English // http://youtube.com/StreamGuild — streams in Russian
My chars @ angband.oook.cz
http://youtube.com/GameGlaz — streams in English // http://youtube.com/StreamGuild — streams in Russian
My chars @ angband.oook.cz
Re: [complete] "TomeNet fonts @ Linux" project
Serega wrote in comments of my russian guide - an instruction considering porting fonts from .FON to linux. It's in Russian, but it's easy enough to use google translate:
в Linux используйте скрипт для шрифтов в MAIN_FONT= и SMALLER_FONT= поставить свой,
SERVER=”europe.tomenet.eu”
PORT=”18348″
muuttuja.org/tomenet/installation-linux.php
muuttuja.org/tomenet/downloads/tomenet.sh
chmod +x tomenet.sh
В папку home//.fonts скопировать шрифт
cd home//.fonts
mkfontdir
xset fp+ /home//.fonts
----
графика в Linux ,нужно переименовать фаил font-custom-21X31TG.prf в нижний регистр font-custom-21x31tg.prf и сохранить в UTF-8 кодировке, скопировать в tomenet-4.7.1-linux-amd64/lib/user , запускаю через скрипт muuttuja.org/tomenet/downloads/tomenet.sh у меня MAIN_FONT=”21x31tg” . Вот и деревья появились **) Tangar благодарю за графику.
----
После перезагрузки может не найти шрифт , в начало скрипта tomenet.sh добавить:
xset fp+ ~/.fonts
xset fp rehash
в Linux используйте скрипт для шрифтов в MAIN_FONT= и SMALLER_FONT= поставить свой,
SERVER=”europe.tomenet.eu”
PORT=”18348″
muuttuja.org/tomenet/installation-linux.php
muuttuja.org/tomenet/downloads/tomenet.sh
chmod +x tomenet.sh
В папку home//.fonts скопировать шрифт
cd home//.fonts
mkfontdir
xset fp+ /home//.fonts
----
графика в Linux ,нужно переименовать фаил font-custom-21X31TG.prf в нижний регистр font-custom-21x31tg.prf и сохранить в UTF-8 кодировке, скопировать в tomenet-4.7.1-linux-amd64/lib/user , запускаю через скрипт muuttuja.org/tomenet/downloads/tomenet.sh у меня MAIN_FONT=”21x31tg” . Вот и деревья появились **) Tangar благодарю за графику.
----
После перезагрузки может не найти шрифт , в начало скрипта tomenet.sh добавить:
xset fp+ ~/.fonts
xset fp rehash
Tangar's tileset, addon, guides & maps: English TomeNET page ||||||| Russian TomeNet page
http://youtube.com/GameGlaz — streams in English // http://youtube.com/StreamGuild — streams in Russian
My chars @ angband.oook.cz
http://youtube.com/GameGlaz — streams in English // http://youtube.com/StreamGuild — streams in Russian
My chars @ angband.oook.cz