Jump to content

Text Font Picture: Difference between revisions

From HedgeDocs
Hyper (talk | contribs)
Created page with "'''''Text Font Picture''''' is a file format used in Sonic the Hedgehog (2006) for defining images for picture variables in the Text Book format. This file format consists of an array of bounding boxes (known as "crops" officially) with names that can be used in the picture variable for the '''Text Book''' format. This file is located at <code>./{platform_root}/archives/text.arc/{platform_root}/text/pictur..."
 
Hyper (talk | contribs)
mNo edit summary
 
Line 72: Line 72:
|The height of this crop.
|The height of this crop.
|}
|}
[[Category:File Formats]]

Latest revision as of 20:50, 4 December 2025

Text Font Picture is a file format used in Sonic the Hedgehog (2006) for defining images for picture variables in the Text Book format.

This file format consists of an array of bounding boxes (known as "crops" officially) with names that can be used in the picture variable for the Text Book format.

This file is located at ./{platform_root}/archives/text.arc/{platform_root}/text/picture.pft.

Specification

Text Font Picture uses a Binary Resource container.

Header

The header consists of the following data structure:

Length: 0x10
Offset Type Name Description
0x00 Char[4] Signature Always "FNTP".
0x04 UInt32 TexturePathOffset The offset of the path to the texture the crops pertain to.
0x08 UInt32 CropCount The number of crops in the texture.
0x0C UInt32 CropTableOffset The offset of the crop table.

Crop

Each crop in the table consists of the following data structure:

Length: 0x0C
Offset Type Name Description
0x00 UInt32 NameOffset The offset of the name of this crop.
0x04 UInt16 X The X position of this crop.
0x06 UInt16 Y The Y position of this crop.
0x08 UInt16 Width The width of this crop.
0x0A UInt16 Height The height of this crop.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.