Skip to content

Commit c6911a8

Browse files
committed
change example fonts and add licenses
1 parent 1e386e9 commit c6911a8

14 files changed

+21256
-37729
lines changed

LICENSES/OFL-1.1-RFN.txt

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
2+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
3+
This license is copied below, and is also available with a FAQ at:
4+
http://scripts.sil.org/OFL
5+
6+
Version 1.1 - 26 February 2007
7+
8+
----
9+
10+
SIL Open Font License
11+
=====================
12+
13+
14+
Preamble
15+
--------
16+
17+
The goals of the Open Font License (OFL) are to stimulate worldwide
18+
development of collaborative font projects, to support the font creation
19+
efforts of academic and linguistic communities, and to provide a free and
20+
open framework in which fonts may be shared and improved in partnership
21+
with others.
22+
23+
The OFL allows the licensed fonts to be used, studied, modified and
24+
redistributed freely as long as they are not sold by themselves. The
25+
fonts, including any derivative works, can be bundled, embedded,
26+
redistributed and/or sold with any software provided that any reserved
27+
names are not used by derivative works. The fonts and derivatives,
28+
however, cannot be released under any other type of license. The
29+
requirement for fonts to remain under this license does not apply
30+
to any document created using the fonts or their derivatives.
31+
32+
Definitions
33+
-----------
34+
35+
`"Font Software"` refers to the set of files released by the Copyright
36+
Holder(s) under this license and clearly marked as such. This may
37+
include source files, build scripts and documentation.
38+
39+
`"Reserved Font Name"` refers to any names specified as such after the
40+
copyright statement(s).
41+
42+
`"Original Version"` refers to the collection of Font Software components as
43+
distributed by the Copyright Holder(s).
44+
45+
`"Modified Version"` refers to any derivative made by adding to, deleting,
46+
or substituting -- in part or in whole -- any of the components of the
47+
Original Version, by changing formats or by porting the Font Software to a
48+
new environment.
49+
50+
`"Author"` refers to any designer, engineer, programmer, technical
51+
writer or other person who contributed to the Font Software.
52+
53+
Permission & Conditions
54+
-----------------------
55+
56+
Permission is hereby granted, free of charge, to any person obtaining
57+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
58+
redistribute, and sell modified and unmodified copies of the Font
59+
Software, subject to the following conditions:
60+
61+
1. Neither the Font Software nor any of its individual components,
62+
in Original or Modified Versions, may be sold by itself.
63+
64+
2. Original or Modified Versions of the Font Software may be bundled,
65+
redistributed and/or sold with any software, provided that each copy
66+
contains the above copyright notice and this license. These can be
67+
included either as stand-alone text files, human-readable headers or
68+
in the appropriate machine-readable metadata fields within text or
69+
binary files as long as those fields can be easily viewed by the user.
70+
71+
3. No Modified Version of the Font Software may use the Reserved Font
72+
Name(s) unless explicit written permission is granted by the corresponding
73+
Copyright Holder. This restriction only applies to the primary font name as
74+
presented to the users.
75+
76+
4. The name(s) of the Copyright Holder(s) or the Author(s) of the Font
77+
Software shall not be used to promote, endorse or advertise any
78+
Modified Version, except to acknowledge the contribution(s) of the
79+
Copyright Holder(s) and the Author(s) or with their explicit written
80+
permission.
81+
82+
5. The Font Software, modified or unmodified, in part or in whole,
83+
must be distributed entirely under this license, and must not be
84+
distributed under any other license. The requirement for fonts to
85+
remain under this license does not apply to any document created
86+
using the Font Software.
87+
88+
Termination
89+
-----------
90+
91+
This license becomes null and void if any of the above conditions are
92+
not met.
93+
94+
Disclaimer
95+
----------
96+
97+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
98+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
99+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
100+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
101+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
102+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
103+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
104+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
105+
OTHER DEALINGS IN THE FONT SOFTWARE.

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Usage Example
5757
5858
from adafruit_bitmap_font import bitmap_font
5959
from displayio import Bitmap
60-
font = bitmap_font.load_font("fonts/Arial-16.bdf", Bitmap)
60+
font = bitmap_font.load_font("fonts/LeagueSpartan-Bold-16.bdf", Bitmap)
6161
print(font.get_glyph(ord("A")))
6262
6363

examples/bitmap_font_displayio_simpletest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
display = board.DISPLAY
2121

2222
# try uncommenting different font files if you like
23-
font_file = "fonts/Arial-16.bdf"
24-
# font_file = "fonts/yasashi24.pcf"
23+
font_file = "fonts/LeagueSpartan-Bold-16.bdf"
24+
# font_file = "fonts/Junction-regular-24.pcf"
2525

2626
font = bitmap_font.load_font(font_file)
2727

examples/bitmap_font_label_magtag.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
time.sleep(display.time_to_refresh)
2020

2121
# try uncommenting different font files if you like
22-
font_file = "fonts/Arial-16.bdf"
23-
# font_file = "fonts/yasashi24.pcf"
22+
font_file = "fonts/LeagueSpartan-Bold-16.bdf"
23+
# font_file = "fonts/Junction-regular-24.pcf"
2424

2525
# Set text, font, and color
2626
text = "HELLO WORLD\nbitmap_font example"

examples/bitmap_font_label_simpletest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
display = board.DISPLAY
1717

1818
# try uncommenting different font files if you like
19-
font_file = "fonts/Arial-16.bdf"
20-
# font_file = "fonts/yasashi24.pcf"
19+
font_file = "fonts/LeagueSpartan-Bold-16.bdf"
20+
# font_file = "fonts/Junction-regular-24.pcf"
2121

2222
# Set text, font, and color
2323
text = "HELLO WORLD"

0 commit comments

Comments
 (0)