Jump to content

JAFont 0.0.4

   (0 reviews)

1 Screenshot

About This File

JAFont is a tool that converts .ttf fonts to a usable font format in JA. It was created by JAfont by Wudan, OJP et al, built with help from Bejitt and Fracman. 0.0.4 version by ykas.

Usage:

1. Copy font files (TTF, OTF) to JAFont/fonts directory.

2. Call jaFont.exe <command> <fontfile> <size> <JAfontname> [-cyr] [scale:<scale>] [format:q3] [outsize:<size>]

Required parameters (order matters):

  1. <command> - should be always -create
  2. <fontfile> - name of the font (ttf) file, including extension
  3. <size> - font size
  4. <JAfontname> - font name used in JO/JA

Optional parameters (order doesn't matter, but should be added at the right from required parameters):

  • -cyr - use cyrillc encoding (Windows-1251)
  • -koreanhack - don't use this setting
  • scale:<integer> - font resolution scale, the value is integer (1 - normal, 2 - high-res font)
  • yshift:<integer> - add vertical offset to all symbols to adjust text vertical coorinate (default value: 0). Don't use this setting.
  • format:q3 - JO format (default is JA)
  • outsize:<value> - in-game size (pt) of the font (for example, [<size>=18 ... outsize:9] creates 18pt font, but saves it as 9pt for better resolution)

As you can see, there are two ways to scale font, both give a bit different result, and in both cases positioning of scaled glyphs in game isn't very accurate.
Example #1: JAFont.exe -create ARIALNB.TTF 9 arialnb scale:2
Example #2: JAFont.exe -create ARIALNB.TTF 18 arialnb outsize:9

Resulting .fontdat and .png files will be placed in JAFont/output directory.

Notes:

  • Since 0.0.2 version doesn't work anymore and doesn't include sources, this version is based on the original 0.0.1a.
  • for Jedi Outcast, manually convert png image to tga (and don't forget about alpha channel).

This file is not developed, distributed, or endorsed by Activision Publishing, Inc., Raven Software, Lucasfilm Ltd., Disney, Inc., or any of their affiliated entities. All trademarks, copyrights, and intellectual property rights belong to their respective owners. Star Wars®, Jedi®, and Jedi Knight® are registered trademarks of Lucasfilm Ltd.™ and Disney, Inc.™. This file is intended for educational, non-commercial, or fan-based use under the principles of fair use. No copyright infringement is intended. Any claims of ownership or DMCA takedown requests can be submitted here.


What's New in Version 0.0.4

Released

- Positioning of scaled glyphs improved, although it still isn't accurate

- vertical offset is correct by default for scaled fonts, and yshift isn't needed anymore


User Feedback

Recommended Comments

Circa

Posted (edited)

@anti2 I noticed some characters are too far left or right. I've tried with a couple fonts. Specifically A, Y, T, and W are too far left. Is that something that could be fixed in the code somehow? This doesn't occur in the original JAFont.  I tried with and without the -cyr and yshift parameters.

EDIT: Okay, I was setting it to 32 size font with scale 0.35. I just set it back to 20 with scale at 1 and it works fine. But setting any scale starts to make those letters deviate. The farther from scale 1 you get the worse it gets.

spacer.png

Edited by Circa
anti2

Posted

On 1/27/2025 at 12:52 AM, Circa said:

@anti2 I noticed some characters are too far left or right. I've tried with a couple fonts. Specifically A, Y, T, and W are too far left. Is that something that could be fixed in the code somehow? This doesn't occur in the original JAFont.  I tried with and without the -cyr and yshift parameters.

EDIT: Okay, I was setting it to 32 size font with scale 0.35. I just set it back to 20 with scale at 1 and it works fine. But setting any scale starts to make those letters deviate. The farther from scale 1 you get the worse it gets.

Unfortunately, scaling feature for high res fonts doesn't work, because we need to multiply by some scale ratio and round small numbers to integer (for example, 1 pixel (horizontal letter offset) * 0.4 (scale ratio) == 0.4 -> 0 pixels). As a result, positioning of letters isnt accurate.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...