PiBoSo Official Forum

GP Bikes => Mods => Bikes => Topic started by: PiBoSo on December 13, 2016, 06:47:26 PM

Title: FontGen
Post by: PiBoSo on December 13, 2016, 06:47:26 PM
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
Title: Re: FontGen
Post by: HornetMaX on December 13, 2016, 07:45:28 PM
Thanks !
Title: Re: FontGen
Post by: HornetMaX on December 13, 2016, 08:13:54 PM
Just trying on a .ttf (http://www.fontspace.com/julieta-ulanovsky/montserrat (http://www.fontspace.com/julieta-ulanovsky/montserrat)), what is the "-d" command line option ?
If I don't put it, fontgen crashes.
Title: Re: FontGen
Post by: 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.


P.S.
The font should have been generated anyway, despite the crash at the end
Title: Re: FontGen
Post by: Warlock on December 13, 2016, 10:31:37 PM
.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?
Title: Re: FontGen
Post by: HornetMaX on December 13, 2016, 11:19:25 PM
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).
Title: Re: FontGen
Post by: PiBoSo on December 13, 2016, 11:33:13 PM
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.
Title: Re: FontGen
Post by: HornetMaX on December 13, 2016, 11:59:37 PM
My bad, works fine.

Damn PeaZip does not overwrite existing files by default ...  ::)
Title: Re: FontGen
Post by: Reactive on February 12, 2018, 09:31:43 PM
(https://3.downloader.disk.yandex.ru/preview/7f55b18dffb8901911a807c05ca2108ef66622f9f4e2884c8863d5a11b651424/inf/e2vLCL96iw0rvJwCAQupR29sGXAzzv76ppiqelOOR2Lgpwjbsg4CvFB55_ZxAVtBTj2mDs9-vNX9_MKyrTPD6A%3D%3D?uid=0&filename=fontgen1.jpg&disposition=inline&hash=&limit=0&content_type=image%2Fjpeg&tknv=v2&size=XXL&crop=0)
Title: Re: FontGen
Post by: PiBoSo on February 14, 2018, 09:01:40 PM

You forgot to add "[config]" on top of the config.ini file.
Title: Re: FontGen
Post by: PiBoSo on March 07, 2018, 11:22:06 PM

Bike tools updated to upgrade FontGen to the 1.02 version.