Jump to content


lunar

Member Since 24 Jan 2023
Offline Last Active Feb 02 2023 04:02 AM

Topics I've Started

How to create custom font bam from ttf

24 January 2023 - 04:45 AM

I learned to use this java file in this thread to create font files for bg2 original.

 

http://www.shsforums...onts-for-pt-pl/

 

 I understood and got it work. I can now create regular fonts in bam format for the old bg2 game. (arial, dejvu, helvetica vs. all work.)

However I can not make it create custom fonts from a fancy custom ttf file I want. I installed ttf file I wanted on my system, so it shows up in wordpad and the like. However when I put the command line with the custom font name, it does not work, it always creates the default font that the system falls back on.

Can you tell me how to mke it work with the custom ttf font I downloded?
My command line is:

java -jar fontb.jar -charset cp1250 -font "Fabada-18" -out C:\Users\user\tmp\normal.bam -useAA true -drawShadow false

 

This works if I swap Fabada with regular font like helvetica, but I want to create this Fabada font. Like I said I got it instlled on system, it shows up in wordpad as available. Wht do I need to do make java recognise this font?