Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Font properties (size, lineHeight and base) get changed when importing .fnt file #1

Open
przemo20 opened this issue Jan 8, 2025 · 0 comments

Comments

@przemo20
Copy link

przemo20 commented Jan 8, 2025

Example steps to reproduce:

  1. Launch TTG Tools, open the Font Editor and load the font file from the following ZIP file: RockwellExtraBold.zip (this is one of the fonts from Tales from the Borderlands)
  2. Right-click in the box with all three textures listed in it and select “Export coordinates”. Save the files as “1.fnt”.
    obraz
  3. Right-click in the same box, but this time select “Import coordinates from Bitmap Font Generator (*.fnt типа xml)”. Import the 1.fnt file.

Actual behavior

The font properties now are mixed up. To see that you can either, repeat the step 2 (with the only difference to save the file as something different, like “2.fnt”) and compare the files (you will see that size and lineHeight got changed from 81 to 100 and base is now 81 instead of 100), or saving the new font file and trying both (unmodified and modified) in the game.

@przemo20 przemo20 changed the title Font properties (size, lineHeight and base) get changed when importing .fnt file Font properties (size, lineHeight and base) get changed when importing .fnt file Jan 8, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant