PGF Font: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>Ikskoks
imported>Ikskoks
Line 44: Line 44:


* [https://psp.brewology.com/downloads/get.php?id=4911 ttf2pgf] (+ [https://github.com/soywiz-archive/pspemu/tree/master/tools/ttf2pgf source code])
* [https://psp.brewology.com/downloads/get.php?id=4911 ttf2pgf] (+ [https://github.com/soywiz-archive/pspemu/tree/master/tools/ttf2pgf source code])
* mkfontset
* mkfontset (this is just a shell script for ttf2pgf tool)
* [https://github.com/tpunix/pgftool pgftool]
* [https://github.com/tpunix/pgftool pgftool]
* [https://wololo.net/talk/viewtopic.php?t=25767 font hacker]
* [https://wololo.net/talk/viewtopic.php?t=25767 font hacker]

Revision as of 22:36, 3 February 2022

Back to index | Edit this page

PGF

  • Format Type : Font
  • Endian Order : Little Endian
  • Signature : PGF0


Format Specifications

//header
2 bytes (uint16) - header offset  // always 0
2 bytes (uint16) - header size // 392
4 bytes (char) - signature // "PGF0"
4 bytes (uint32) - version major // e.g. 2
4 bytes (uint32) - version minor // e.g. 6
4 bytes (uint32) - length of character map table
4 bytes (uint32) - length of character pointer table
4 bytes (uint32) - number of bits per packed character map entry  // 15
4 bytes (uint32) - number of bits per packed character pointer table entry // 20
4 bytes (uint32) - unknown

// TODO

MultiEx BMS Script

Not written yet.

Notes and Comments

  • The PGF format is a bitmap based font format used in some PSP games.
  • Each letter in font is compressed with RLE compression.

Games

List of games using this file format:

  • Lunar: Silver Star Harmony (*.PGF) (PSP)
  • many more...

Compatible Programs

See Also