Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Electronic Arts Font File [FNTF] Plugin for Paint.NET

General game file tools that are useful for more than one game
Post Reply
User avatar
TopazTK
beginner
Posts: 20
Joined: Thu Mar 21, 2019 6:26 pm
Has thanked: 2 times
Been thanked: 14 times

Electronic Arts Font File [FNTF] Plugin for Paint.NET

Post by TopazTK »

Purpose:
This plugin allows for "*.ffn" files to be edited directly in Paint.NET. It was a request made by Rancher#1263 on Discord.

Format:
FNTF Files use an edited version of the infamous RAWBMP/2 Format which originates in the PS2. Funnliy enough, the font files are present and are eing used on PC games.

The most of the format is currently unknown territory. But this plugin works well enough to open, edit and save the image within the files. Currently, the known bits are:

Code: Select all

Int32 = Magic Header [FNTF]
Int32 = File Size - 0x10
0x14 = Unknown
Int32 = Image Location

// Skip to Image Location
Int32 = 0x7A
Int16 = Width
Int16 = Height
Int64 = Padding
[Width * Height / 2] = Image Data

Image Info:
Depth: 4BPP
RGB = 0xFFFFFF
Alpha = 4BPP Value

Image Structure Formula:
for (int i = 0; i < PixelData.Count; i++)
{
    byte b = PixelData[i];

    byte b2 = (byte)(b & 0xF);
    b = (byte)(b >> 4 & 0xF);

    Image.SetPixel(x, y, Color.FromArgb(16 * b, 255, 255, 255));
    Image.SetPixel(x + 1, y, Color.FromArgb(16 * b2, 255, 255, 255));

    x += 2;

    if (x >= 256)
    {
        x = 0;
        y += 1;
    }
}
Odds and Ends:
[*] This plugin is non-destructive, it will NOT hurt the possibly existent font data
[*] It does not care about color, only Alpha values
[*] Supports Transparency

Installation:
Extract the .DLL file inside the downloaded .ZIP file to C:/Program Files/paint.net/FileTypes.

Screenshots:
Image
Image
Image

Download:
Attached Below.

Please do not hesitate to report any bugs that occur.
Keep on Moddin'!

- TopazTK
You do not have the required permissions to view the files attached to this post.
Pikachok
ultra-n00b
Posts: 3
Joined: Sat Feb 10, 2018 10:02 am

Re: Electronic Arts Font Fıle [FNTF] Plugin for Paint.NET

Post by Pikachok »

Can you adapt the plugin for paint.net version 3.5.11?
User avatar
TopazTK
beginner
Posts: 20
Joined: Thu Mar 21, 2019 6:26 pm
Has thanked: 2 times
Been thanked: 14 times

Re: Electronic Arts Font Fıle [FNTF] Plugin for Paint.NET

Post by TopazTK »

macalok wrote: Sun May 10, 2020 10:43 am Can you adapt the plugin for paint.net version 3.5.11?
Sorry, I was away for a bit due to personal reasons. Does this plugin not work with PDN 3.5.11?
I will check this issue out.
Pikachok
ultra-n00b
Posts: 3
Joined: Sat Feb 10, 2018 10:02 am

Re: Electronic Arts Font Fıle [FNTF] Plugin for Paint.NET

Post by Pikachok »

TopazTK wrote: Sat Aug 01, 2020 8:59 pm
macalok wrote: Sun May 10, 2020 10:43 am Can you adapt the plugin for paint.net version 3.5.11?
Sorry, I was away for a bit due to personal reasons. Does this plugin not work with PDN 3.5.11?
I will check this issue out.
No, for some reason, when investing fashion in the version 3.5.11, the mod does not work.
BurningUp
ultra-n00b
Posts: 1
Joined: Wed Jan 27, 2021 6:38 pm

Re: Electronic Arts Font File [FNTF] Plugin for Paint.NET

Post by BurningUp »

Nothing works. Can anyone help add Cyrillic to fonts?
ConduitMdITC8b.ffn
ConduitMdITC10b.ffn
ConduitMdITC12b.ffn
ConduitMdITC14b.ffn
ConduitMdITC16b.ffn


If you help, I will be the happiest [roll]
jlnhlfan
beginner
Posts: 38
Joined: Wed Dec 09, 2020 9:00 pm

Re: Electronic Arts Font File [FNTF] Plugin for Paint.NET

Post by jlnhlfan »

All these files from NHL 2000 cannot be read by the plugin. The following two replies will feature unreadable files from NHL 2001 and 2002, as one attachment is the maximum for each reply. >:(
You do not have the required permissions to view the files attached to this post.
jlnhlfan
beginner
Posts: 38
Joined: Wed Dec 09, 2020 9:00 pm

Re: Electronic Arts Font File [FNTF] Plugin for Paint.NET

Post by jlnhlfan »

The NHL 2001 example.
You do not have the required permissions to view the files attached to this post.
jlnhlfan
beginner
Posts: 38
Joined: Wed Dec 09, 2020 9:00 pm

Re: Electronic Arts Font File [FNTF] Plugin for Paint.NET

Post by jlnhlfan »

The NHL 2002 example.
You do not have the required permissions to view the files attached to this post.
bugsimtasdesimt
ultra-n00b
Posts: 8
Joined: Mon May 02, 2022 4:02 pm
Has thanked: 1 time

Re: Electronic Arts Font File [FNTF] Plugin for Paint.NET

Post by bugsimtasdesimt »

All fonts for Need for Speed: High Stakes don't open and only some open for Need for Speed: Porsche Unleashed... :(
helendam
ultra-n00b
Posts: 2
Joined: Sat Apr 15, 2023 8:17 am

Re: Electronic Arts Font File [FNTF] Plugin for Paint.NET

Post by helendam »

BurningUp wrote: Thu Feb 04, 2021 1:28 pm If you help, I will be the happiest [roll]
yes, i so think
hok1994
ultra-n00b
Posts: 3
Joined: Sat Jun 10, 2023 11:23 am

Re: Electronic Arts Font File [FNTF] Plugin for Paint.NET

Post by hok1994 »

is there any way I can change the height of the background if I need to fit more characters? because the program does not allow this
User avatar
SlavaVlasov
n00b
Posts: 11
Joined: Wed Jul 01, 2015 9:00 pm
Has thanked: 3 times
Been thanked: 7 times

Re: Electronic Arts Font File [FNTF] Plugin for Paint.NET

Post by SlavaVlasov »

Cool! :)
Post Reply