• Welcome to PiBoSo Official Forum. Please login or sign up.
 
March 28, 2024, 10:01:00 PM

News:

GP Bikes beta21c available! :)


FontGen

Started by PiBoSo, December 13, 2016, 06:47:26 PM

Previous topic - Next topic

PiBoSo

December 13, 2016, 06:47:26 PM Last Edit: March 07, 2018, 11:23:13 PM by PiBoSo
The FontGen is a command-line program.

Configuration file format:

[config]
name = Arial Bold
code_page = 1252
char_start = 32
char_end = 255
bitmap_x = 512
bitmap_y = 512
spacing = 4
filename = arialbd.ttf
scale = 0.8


Code pages: https://en.wikipedia.org/wiki/Code_page#Windows_code_pages
"La perfezione non è il nostro obiettivo, è la nostra tendenza".

HornetMaX


HornetMaX

Just trying on a .ttf (http://www.fontspace.com/julieta-ulanovsky/montserrat), what is the "-d" command line option ?
If I don't put it, fontgen crashes.

PiBoSo


Whoopsie doopsie  :-[
Thank you for the report. Bike tools updated to upgrade FontGen to the 1.01 version.


P.S.
The font should have been generated anyway, despite the crash at the end
"La perfezione non è il nostro obiettivo, è la nostra tendenza".

Warlock

.bat file
fontgen.exe config.ini font.tga

config.ini
name = font
char_start = 32
char_end = 255
bitmap_x = 512
bitmap_y = 512
spacing = 4
filename = wwDigital.ttf
scale = 0.8


the .tga is generated but cannot view it or be opened in photoshop ... what am i missing?

HornetMaX

Quote from: PiBoSo on December 13, 2016, 09:29:26 PM
Whoopsie doopsie  :-[
Thank you for the report. Bike tools updated to upgrade FontGen to the 1.01 version.
I still see the v1.0 at the usual link.

Quote from: PiBoSo on December 13, 2016, 09:29:26 PM
P.S.
The font should have been generated anyway, despite the crash at the end
True. And they do work fine in game :)

Passing the -d I had no crash and two .tga generated (I can open them, no problem for me).

PiBoSo

Quote from: HornetMaX on December 13, 2016, 11:19:25 PM
I still see the v1.0 at the usual link.

???
Please try again. The file size should be 930,655 bytes.
"La perfezione non è il nostro obiettivo, è la nostra tendenza".

HornetMaX

My bad, works fine.

Damn PeaZip does not overwrite existing files by default ...  ::)

Reactive

Excuse my English, its not my native.
Ryzen7 1800x / Aorus GA-AX370 Gaming K7 / Hynix 16Gb x2 2993MHz / Samsung 960PRO 512 M.2 / nVidia GTX1060 6Gb / Windows 10 pro x64

PiBoSo


You forgot to add "[config]" on top of the config.ini file.
"La perfezione non è il nostro obiettivo, è la nostra tendenza".

PiBoSo


Bike tools updated to upgrade FontGen to the 1.02 version.
"La perfezione non è il nostro obiettivo, è la nostra tendenza".