- Common Lisp 80.2%
- CSS 16.8%
- Makefile 3%
| .github/workflows | ||
| glyphs | ||
| .dir-locals.el | ||
| .gitattributes | ||
| .gitignore | ||
| compile.lisp | ||
| CONTRIBUTING.md | ||
| glyphs.json | ||
| index.css | ||
| index.ctml | ||
| LICENSE.txt | ||
| logo.svg | ||
| Makefile | ||
| preview.png | ||
| promptfont.sfd | ||
| README.md | ||
About PromptFont
This is a font designed for button prompts in games. It includes the base alphabet, as well as icons for modifier and control keys, and gamepad buttons. All the icons included in the font are custom made and available under the same SIL Open Font Licence. Included trademarks however of course still belong to their respective owners.
PromptFont is based on the Xolonium font by Severin Meyer.
Attribution
If you use this font in your project please leave an attribution notice in your credits like this:
PromptFont by Yukari "Shinmera" Hafner, available at https://shinmera.com/promptfont
Release Files
The PromptFont release includes a couple of files. Here's what they're for:
LICENSE.txtA copy of the SIL Open Font licenseREADME.mdA copy of this readmeindex.htmlA copy of the website so you can use it offline as wellglyphs.jsonThis is a JSON file with an array of the glyphs the font provides. Each glyph is an object with the following attributes:characterThe actual character as a one-character stringcodeThe unicode codepoint name (U+XXXX)codepointThe actual codepoint as an integercategoryThe category the glyph belongs tonameThe unique human-readable name of the glyphcode-nameThe unique code-readable name of the glyph. It only contains lowercase characters a-z, numbers 0-9, and dashes. This should make it easy to turn into a code symboltagsA list of tags that apply to the glyph. There are a number of tags for glyph variants and so on, but the most important categories are probably:analogAnalog stick movements andl,r,sfor the sticksbuttonButton presses andx,y,a,b,l1,r1,l3,r3, etc for the buttonsdpadDpad movementskeyKeyboard keystouch,press,hold,release,move-l,move-r,move-u,move-d, etc for movementsdeviceDevice iconsxboxApplies to Xbox style gamepadsnintendoApplies to Nintendo style gamepadssonyApplies to Sony Playstation style gamepadsgenericApplies to any gamepaduiUser interface iconswide-alternateThe glyph has a wider alternate variant to its standard unit square representation. You can get the variant by shifting the codepoint up by 2560 (0xA00). If you use a text system that supports ligatures, you can instead use a zero-width space (U+200B) after a glyph to select its wide variant, if available. Since the zero-width space is invisible, if no wide alternate is available, it won't be visible that you tried to select for one, making the process completely transparent.
tags.txtA plaintext CSV file that maps all of the tags to thecode-nameof each glyph that was tagged as such. Each line is simply the tag name followed by the code names separated by a space.promptfont.txtA plaintext UTF-8 file that contains all the characters that the font provides.promptfont.ttfandpromptfont.otfTrueType and OpenType versions of the font, which you should be able to use directly in-engine or other programs.promptfont.cssA CSS file that includes CSS classes for every special glyph, so you can easily embed it in HTML pages and JS games.promptfont.hpromptfont.cspromptfont.pypromptfont.luapromptfont.lisppromptfont.rspromptfont.gdSource files that define constants for the special glyphs to allow easier embedding in C, C++, C#, Python, Lua, Lisp, Rust, and GDScript.promptfont.exepromptfont.runpromptfont.oBinaries of the promptfont utilities. You can use this to search for glyphs or to compile the data files from the json representation.atlas-*.pngTexture atlases of the various glyphs. Each glyph is 64x64 pixels and has a 1 pixel margin around itself. They are ordered left to right top to bottom according to their filename in theglyphs/directory of this repository. Since these rasterised versions don't scale well we heavily recommend you to use the fonts directly.
Engine Specifics
Since there's far too many engines out there and their methods vary a lot, we can't include guides in this repository. For specifics on how to use this font in your engine of choice, please consult the user-contributed Wiki.
Contributing Glyphs
For a brief guide on what to watch out for if you'd like to contribute to this font, please see the CONTRIBUTING.md file. If you'd like to request new glyphs to be added, please comment on the issue ticket.
Support
If you'd like to support the continued development of PromptFont, please consider becoming a backer on Patreon: