You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PDFontTool is a command line tool for Windows (10 or later) that converts Windows-supported fonts such as TrueType Font(.ttf), OpenType Fontt(.otf), etc. into fonts for Playdate (.fnt + .png).
It is rendered directly on a black and white canvas without anti-aliasing using Windows Direct2D. Outline fonts can also be converted to reasonably clean fonts without requiring detailed settings.
Specify the grid size (the size of one glyph in the generated PNG image) in width,height.
If not specified, it is automatically calculated from the font rendering size.
-R
Enable recalc character width.
(This option is not necessary for other than monospace fonts. Normally, this option should not be specified.)
Since many of the Kanji bitmap fonts created in the past were monospaced fonts and did not look good, especially in the ASCII range, PDFontTool has implemented an option to measure and reflect the actual font width to improve the appearance.
Because GDI+'s GetPixel is used to measure character width, execution time is considerably longer.
-ma
Margin for ASCII range
Must be specified with '-R'
-mo
Margin for outside ASCII range
Must be specified with '-R'
PDFontTool.pdx
PDFontTool.pdx is a test application for Playdate to check fonts generated by pdft.exe.
Visual Studio Code is used to build and run the application.
Translation
The original documentation created by the author is in Japanese. English documentation is either based on machine translation or has not been created. If you would like to help us, we would appreciate it if you could create English documentation and point out any errors.
In addition
Because pdft.exe relies heavily on Windows OS features, it is difficult to make it work on other platforms.