PGF Font: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>Ikskoks
imported>Ikskoks
Line 48: Line 48:
* [https://github.com/soywiz-archive/pspemu/blob/master/tools/ttf2pgf/ttf2pgf/PGF.cs ttf2pgf/PGF.cs]
* [https://github.com/soywiz-archive/pspemu/blob/master/tools/ttf2pgf/ttf2pgf/PGF.cs ttf2pgf/PGF.cs]
* [http://hitmen.c02.at/files/yapspd/psp_doc/chap26.html#sec26.9 PGF file format (psp_doc)]
* [http://hitmen.c02.at/files/yapspd/psp_doc/chap26.html#sec26.9 PGF file format (psp_doc)]
* [https://forums.ps2dev.org/viewtopic.php?p=59845#p59845 PGF file format (ps2dev)]
<br/><br>
<br/><br>



Revision as of 21:57, 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 font 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)

Compatible Programs

  • ttf2pgf
  • mkfontset

See Also