• Welcome to PiBoSo Official Forum. Please login or sign up.
 
October 22, 2019, 10:13:03 pm

News:

World Racing Series beta14 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
"Obviously your ambition outweighs your talent".

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
"Obviously your ambition outweighs your talent".

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.
"Obviously your ambition outweighs your talent".

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.
"Obviously your ambition outweighs your talent".

PiBoSo


Bike tools updated to upgrade FontGen to the 1.02 version.
"Obviously your ambition outweighs your talent".