Jump to content

Upscaling bitmapped fonts causes incorrect scaling in-game

Recommended Posts


Hi there,


I was attempting to scale the fonts in Bioncle Heroes up 4x but I've run into a problem.


I tested upscaling the font dds (franklin.dds) by 2x and the values in the corrisponding franklin.qfn file by 2x as well (so characters would have the correct coordinates and size relative to the upscaled dds).


This however causes the characters to be scaled (in-game) vertically, but not horizontally according to the aspect ratio of the character.





Any ideas as to what I've done wrong?

also, if anyone wants the qfn file format, here's what I could determine:

    Position array
    Character array

Header, byte[0x50]:
    Unknown, byte[8]
    File size (+ 0x10???), uint32
    Position array count, uint32
    Character array count, uint32
    Font height, float
    Font base, float
    Space width, float
    Unknown, byte[20]
    Position array offset, uint32
    Character array offset, uint32
    Unknown, byte[20]

Position array:
    Position[Position array count]

Character array:
    Character[Character array count]

    X, float
    Y, float
    Width(in dds), float

    Character, wchar
    Position array index, short

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.