promptfont 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +91 -0
- package/README.md +65 -0
- package/glyphs.json +7034 -0
- package/index.css +251 -0
- package/index.html +3498 -0
- package/package.json +39 -0
- package/promptfont.css +454 -0
- package/promptfont.otf +0 -0
- package/promptfont.ttf +0 -0
- package/promptfont.woff +0 -0
- package/promptfont.woff2 +0 -0
- package/tags.txt +295 -0
package/LICENSE.txt
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
This Font Software is licensed under the SIL Open Font License,
|
|
2
|
+
Version 1.1. This license is copied below, and is also available
|
|
3
|
+
with a FAQ at <http://scripts.sil.org/OFL>
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
-----------------------------------------------------------
|
|
7
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
|
|
10
|
+
PREAMBLE
|
|
11
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
12
|
+
development of collaborative font projects, to support the font creation
|
|
13
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
14
|
+
open framework in which fonts may be shared and improved in partnership
|
|
15
|
+
with others.
|
|
16
|
+
|
|
17
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
18
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
19
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
20
|
+
redistributed and/or sold with any software provided that any reserved
|
|
21
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
22
|
+
however, cannot be released under any other type of license. The
|
|
23
|
+
requirement for fonts to remain under this license does not apply
|
|
24
|
+
to any document created using the fonts or their derivatives.
|
|
25
|
+
|
|
26
|
+
DEFINITIONS
|
|
27
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
28
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
29
|
+
include source files, build scripts and documentation.
|
|
30
|
+
|
|
31
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
32
|
+
copyright statement(s).
|
|
33
|
+
|
|
34
|
+
"Original Version" refers to the collection of Font Software components as
|
|
35
|
+
distributed by the Copyright Holder(s).
|
|
36
|
+
|
|
37
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
38
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
39
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
40
|
+
new environment.
|
|
41
|
+
|
|
42
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
43
|
+
writer or other person who contributed to the Font Software.
|
|
44
|
+
|
|
45
|
+
PERMISSION & CONDITIONS
|
|
46
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
47
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
48
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
49
|
+
Software, subject to the following conditions:
|
|
50
|
+
|
|
51
|
+
1) Neither the Font Software nor any of its individual components,
|
|
52
|
+
in Original or Modified Versions, may be sold by itself.
|
|
53
|
+
|
|
54
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
55
|
+
redistributed and/or sold with any software, provided that each copy
|
|
56
|
+
contains the above copyright notice and this license. These can be
|
|
57
|
+
included either as stand-alone text files, human-readable headers or
|
|
58
|
+
in the appropriate machine-readable metadata fields within text or
|
|
59
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
60
|
+
|
|
61
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
62
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
63
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
64
|
+
presented to the users.
|
|
65
|
+
|
|
66
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
67
|
+
Software shall not be used to promote, endorse or advertise any
|
|
68
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
69
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
70
|
+
permission.
|
|
71
|
+
|
|
72
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
73
|
+
must be distributed entirely under this license, and must not be
|
|
74
|
+
distributed under any other license. The requirement for fonts to
|
|
75
|
+
remain under this license does not apply to any document created
|
|
76
|
+
using the Font Software.
|
|
77
|
+
|
|
78
|
+
TERMINATION
|
|
79
|
+
This license becomes null and void if any of the above conditions are
|
|
80
|
+
not met.
|
|
81
|
+
|
|
82
|
+
DISCLAIMER
|
|
83
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
84
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
85
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
86
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
87
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
88
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
89
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
90
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
91
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
## About PromptFont
|
|
2
|
+
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](LICENSE.txt). Included trademarks however of course still belong to their respective owners.
|
|
3
|
+
|
|
4
|
+
PromptFont is based on the Xolonium font by Severin Meyer.
|
|
5
|
+
|
|
6
|
+
## Attribution
|
|
7
|
+
If you use this font in your project please leave an attribution notice in your credits like this:
|
|
8
|
+
|
|
9
|
+
> PromptFont by Yukari "Shinmera" Hafner, available at https://shinmera.com/promptfont
|
|
10
|
+
|
|
11
|
+
## Release Files
|
|
12
|
+
The [PromptFont release](https://codeberg.org/shinmera/promptfont/releases/download/latest/promptfont.zip) includes a couple of files. Here's what they're for:
|
|
13
|
+
|
|
14
|
+
- ``LICENSE.txt``
|
|
15
|
+
A copy of the SIL Open Font license
|
|
16
|
+
- ``README.md``
|
|
17
|
+
A copy of this readme
|
|
18
|
+
- ``index.html``
|
|
19
|
+
A copy of the [website](https://shinmera.com/docs/promptfont) so you can use it offline as well
|
|
20
|
+
- ``glyphs.json``
|
|
21
|
+
This is a JSON file with an array of the glyphs the font provides. Each glyph is an object with the following attributes:
|
|
22
|
+
- ``character`` The actual character as a one-character string
|
|
23
|
+
- ``code`` The unicode codepoint name (``U+XXXX``)
|
|
24
|
+
- ``codepoint`` The actual codepoint as an integer
|
|
25
|
+
- ``category`` The category the glyph belongs to
|
|
26
|
+
- ``name`` The unique human-readable name of the glyph
|
|
27
|
+
- ``code-name`` The 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 symbol
|
|
28
|
+
- ``tags`` A 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:
|
|
29
|
+
- ``analog`` Analog stick movements and `l`, `r`, `s` for the sticks
|
|
30
|
+
- ``button`` Button presses and `x`, `y`, `a`, `b`, `l1`, `r1`, `l3`, `r3`, etc for the buttons
|
|
31
|
+
- ``dpad`` Dpad movements
|
|
32
|
+
- ``key`` Keyboard keys
|
|
33
|
+
- ``touch``, ``press``, ``hold``, ``release``, ``move-l``, ``move-r``, ``move-u``, ``move-d``, etc for movements
|
|
34
|
+
- ``device`` Device icons
|
|
35
|
+
- ``xbox`` Applies to Xbox style gamepads
|
|
36
|
+
- ``nintendo`` Applies to Nintendo style gamepads
|
|
37
|
+
- ``sony`` Applies to Sony Playstation style gamepads
|
|
38
|
+
- ``generic`` Applies to any gamepad
|
|
39
|
+
- ``ui`` User interface icons
|
|
40
|
+
- ``wide-alternate`` The 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.
|
|
41
|
+
- ``tags.txt``
|
|
42
|
+
A plaintext CSV file that maps all of the tags to the ``code-name`` of each glyph that was tagged as such. Each line is simply the tag name followed by the code names separated by a space.
|
|
43
|
+
- ``promptfont.txt``
|
|
44
|
+
A plaintext UTF-8 file that contains all the characters that the font provides.
|
|
45
|
+
- ``promptfont.ttf`` ``promptfont.otf`` ``promptfont.woff`` ``promptfont.woff2``
|
|
46
|
+
Compiled versions of the font, which you should be able to use directly in-engine or other programs.
|
|
47
|
+
- ``promptfont.css``
|
|
48
|
+
A CSS file that includes CSS classes for every special glyph, so you can easily embed it in HTML pages and JS games.
|
|
49
|
+
- ``promptfont.h`` ``promptfont.cs`` ``promptfont.py`` ``promptfont.lua`` ``promptfont.lisp`` ``promptfont.rs`` ``promptfont.gd`` ``promptfont.gml``
|
|
50
|
+
Source files that define constants for the special glyphs to allow easier embedding in C, C++, C#, Python, Lua, Lisp, Rust, GDScript and GML.
|
|
51
|
+
- ``promptfont.exe`` ``promptfont.run`` ``promptfont.o``
|
|
52
|
+
Binaries of the promptfont utilities. You can use this to search for glyphs or to compile the data files from the json representation.
|
|
53
|
+
- ``atlas-*.png``
|
|
54
|
+
Texture 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 the ``glyphs/`` directory of this repository. Since these rasterised versions don't scale well we heavily recommend you to use the fonts directly.
|
|
55
|
+
|
|
56
|
+
## Engine Specifics
|
|
57
|
+
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](https://shinmera.com/project/promptfont/wiki/).
|
|
58
|
+
|
|
59
|
+
## Contributing Glyphs
|
|
60
|
+
For a brief guide on what to watch out for if you'd like to contribute to this font, please see the [CONTRIBUTING.md](CONTRIBUTING.md) file. If you'd like to request new glyphs to be added, please comment on the [issue ticket]().
|
|
61
|
+
|
|
62
|
+
## Support
|
|
63
|
+
If you'd like to support the continued development of PromptFont, please consider becoming a backer on Patreon:
|
|
64
|
+
|
|
65
|
+
[](https://patreon.com/shinmera)
|