PGF Font: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>Ikskoks
imported>Ikskoks
 
(33 intermediate revisions by the same user not shown)
Line 12: Line 12:
<pre>
<pre>
//header
//header
2 bytes (uint16) - header offset  // always nulls
2 bytes (uint16) - header offset  // always 0
2 bytes (uint16) - header size // 392
2 bytes (uint16) - header size // 392
4 bytes (char) - signature // "PGF0"
4 bytes (char) - signature // "PGF0"
4 bytes (uint32) - version major // e.g. 2
4 bytes (uint32) - version major // e.g. 2
4 bytes (uint32) - version minor // e.g. 6
4 bytes (uint32) - version minor // e.g. 6
4 bytes (uint32) - number of elements in "table 3"
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
</pre>
</pre>
</div>
</div>
Line 27: Line 33:
=== Notes and Comments ===  
=== Notes and Comments ===  


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


Line 33: Line 39:
List of games using this file format:
List of games using this file format:
* Lunar: Silver Star Harmony (*.PGF) (PSP)
* Lunar: Silver Star Harmony (*.PGF) (PSP)
* many more...


=== Compatible Programs ===  
=== Compatible Programs ===  


* ttf2pgf
* [https://psp.brewology.com/downloads/get.php?id=4911 ttf2pgf] (+ [https://github.com/soywiz-archive/pspemu/tree/master/tools/ttf2pgf source code]) / [https://drive.google.com/file/d/1xlcyA08Ri24XChMEo3PzNLYPi5z0LLv-/view?usp=sharing mirror1]
* mkfontset
* mkfontset (this is just a shell script for ttf2pgf tool)
* [https://drive.google.com/file/d/1ISTYcWNx5blAfk-g5SMCtDEIZEkmd9IB/view?usp=sharing pgftool] (+[https://github.com/tpunix/pgftool source code])
* [https://ppsspp-font.netlify.app/ PGF font editor (online app)]
* [https://wololo.net/talk/viewtopic.php?t=25767 font hacker]
* [https://www.gamebrew.org/wiki/FONTOOL_PSP FONTOOL PSP]
 
=== See Also ===
* [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)]
* [https://forums.ps2dev.org/viewtopic.php?p=59845#p59845 PGF file format (ps2dev)]
<br/><br>
<br/><br>



Latest revision as of 20:37, 9 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