-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Add small 5x3 font #3337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add small 5x3 font #3337
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,141 @@ | ||
| /** | ||
| ** The original 3x5 font is licensed under the 3-clause BSD license: | ||
| ** | ||
| ** Copyright 1999 Brian J. Swetland | ||
| ** Copyright 1999 Vassilii Khachaturov | ||
| ** Portions (of vt100.c/vt100.h) copyright Dan Marks | ||
| ** | ||
| ** All rights reserved. | ||
| ** | ||
| ** Redistribution and use in source and binary forms, with or without | ||
| ** modification, are permitted provided that the following conditions | ||
| ** are met: | ||
| ** 1. Redistributions of source code must retain the above copyright | ||
| ** notice, this list of conditions, and the following disclaimer. | ||
| ** 2. Redistributions in binary form must reproduce the above copyright | ||
| ** notice, this list of conditions, and the following disclaimer in the | ||
| ** documentation and/or other materials provided with the distribution. | ||
| ** 3. The name of the authors may not be used to endorse or promote products | ||
| ** derived from this software without specific prior written permission. | ||
| ** | ||
| ** THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | ||
| ** IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | ||
| ** OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | ||
| ** IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
| ** INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| ** NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
| ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
| ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
| ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
| ** THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| ** | ||
| ** Modifications to Tom Thumb for improved readability are from Robey Pointer, | ||
| ** see: | ||
| ** http://robey.lag.net/2010/01/23/tiny-monospace-font.html | ||
| ** | ||
| ** The original author does not have any objection to relicensing of Robey | ||
| ** Pointer's modifications (in this file) in a more permissive license. See | ||
| ** the discussion at the above blog, and also here: | ||
| ** http://opengameart.org/forumtopic/how-to-submit-art-using-the-3-clause-bsd-license | ||
| ** | ||
| ** Feb 21, 2016: Conversion from Linux BDF --> Adafruit GFX font, | ||
| ** with the help of this Python script: | ||
| ** https://gist.github.com/skelliam/322d421f028545f16f6d | ||
| ** William Skellenger (williamj@skellenger.net) | ||
| ** Twitter: @skelliam | ||
| ** | ||
| */ | ||
|
|
||
| static const unsigned char clear_3x5[] PROGMEM = { | ||
| 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x20 space */ | ||
| 0x80, 0x80, 0x80, 0x00, 0x80, /* 0x21 exclam */ | ||
| 0xA0, 0xA0, 0x00, 0x00, 0x00, /* 0x22 quotedbl */ | ||
| 0xA0, 0xE0, 0xA0, 0xE0, 0xA0, /* 0x23 numbersign */ | ||
| 0x60, 0xC0, 0x60, 0xC0, 0x40, /* 0x24 dollar */ | ||
| 0x80, 0x20, 0x40, 0x80, 0x20, /* 0x25 percent */ | ||
| 0xC0, 0xC0, 0xE0, 0xA0, 0x60, /* 0x26 ampersand */ | ||
| 0x80, 0x80, 0x00, 0x00, 0x00, /* 0x27 quotesingle */ | ||
| 0x40, 0x80, 0x80, 0x80, 0x40, /* 0x28 parenleft */ | ||
| 0x80, 0x40, 0x40, 0x40, 0x80, /* 0x29 parenright */ | ||
| 0xA0, 0x40, 0xA0, 0x00, 0x00, /* 0x2A asterisk */ | ||
| 0x40, 0xE0, 0x40, 0x00, 0x00, /* 0x2B plus */ | ||
| 0x40, 0x80, 0x00, 0x00, 0x00, /* 0x2C comma */ | ||
| 0xE0, 0x00, 0x00, 0x00, 0x00, /* 0x2D hyphen */ | ||
| 0x80, 0x00, 0x00, 0x00, 0x00, /* 0x2E period */ | ||
| 0x20, 0x20, 0x40, 0x80, 0x80, /* 0x2F slash */ | ||
| 0xE0, 0xA0, 0xA0, 0xA0, 0xE0, /* 0x30 zero */ | ||
| 0x40, 0xC0, 0x40, 0x40, 0xE0, /* 0x31 one */ | ||
| 0xE0, 0x20, 0xE0, 0x80, 0xE0, /* 0x32 two */ | ||
| 0xE0, 0x20, 0xE0, 0x20, 0xE0, /* 0x33 three */ | ||
| 0xA0, 0xA0, 0xE0, 0x20, 0x20, /* 0x34 four */ | ||
| 0xE0, 0x80, 0xE0, 0x20, 0xE0, /* 0x35 five */ | ||
| 0xE0, 0x80, 0xE0, 0xA0, 0xE0, /* 0x36 six */ | ||
| 0xE0, 0x20, 0x20, 0x20, 0x20, /* 0x37 seven */ | ||
| 0xE0, 0xA0, 0xE0, 0xA0, 0xE0, /* 0x38 eight */ | ||
| 0xE0, 0xA0, 0xE0, 0x20, 0xE0, /* 0x39 nine */ | ||
| 0x00, 0x40, 0x00, 0x40, 0x00, /* 0x3A colon */ | ||
| 0x40, 0x00, 0x40, 0x80, 0x00, /* 0x3B semicolon */ | ||
| 0x20, 0x40, 0x80, 0x40, 0x20, /* 0x3C less */ | ||
| 0xE0, 0x00, 0xE0, 0x00, 0x00, /* 0x3D equal */ | ||
| 0x80, 0x40, 0x20, 0x40, 0x80, /* 0x3E greater */ | ||
| 0xE0, 0x20, 0x40, 0x00, 0x40, /* 0x3F question */ | ||
| 0x40, 0xA0, 0xE0, 0x80, 0x60, /* 0x40 at */ | ||
| 0x40, 0xA0, 0xE0, 0xA0, 0xA0, /* 0x41 A */ | ||
| 0xC0, 0xA0, 0xC0, 0xA0, 0xC0, /* 0x42 B */ | ||
| 0x60, 0x80, 0x80, 0x80, 0x60, /* 0x43 C */ | ||
| 0xC0, 0xA0, 0xA0, 0xA0, 0xC0, /* 0x44 D */ | ||
| 0xE0, 0x80, 0xE0, 0x80, 0xE0, /* 0x45 E */ | ||
| 0xE0, 0x80, 0xE0, 0x80, 0x80, /* 0x46 F */ | ||
| 0x60, 0x80, 0xE0, 0xA0, 0x60, /* 0x47 G */ | ||
| 0xA0, 0xA0, 0xE0, 0xA0, 0xA0, /* 0x48 H */ | ||
| 0xE0, 0x40, 0x40, 0x40, 0xE0, /* 0x49 I */ | ||
| 0x20, 0x20, 0x20, 0xA0, 0x40, /* 0x4A J */ | ||
| 0xA0, 0xA0, 0xC0, 0xA0, 0xA0, /* 0x4B K */ | ||
| 0x80, 0x80, 0x80, 0x80, 0xE0, /* 0x4C L */ | ||
| 0xA0, 0xE0, 0xE0, 0xA0, 0xA0, /* 0x4D M */ | ||
| 0xA0, 0xE0, 0xE0, 0xE0, 0xA0, /* 0x4E N */ | ||
| 0x40, 0xA0, 0xA0, 0xA0, 0x40, /* 0x4F O */ | ||
| 0xC0, 0xA0, 0xC0, 0x80, 0x80, /* 0x50 P */ | ||
| 0x40, 0xA0, 0xA0, 0xE0, 0x60, /* 0x51 Q */ | ||
| 0xC0, 0xA0, 0xE0, 0xC0, 0xA0, /* 0x52 R */ | ||
| 0x60, 0x80, 0x40, 0x20, 0xC0, /* 0x53 S */ | ||
| 0xE0, 0x40, 0x40, 0x40, 0x40, /* 0x54 T */ | ||
| 0xA0, 0xA0, 0xA0, 0xA0, 0x60, /* 0x55 U */ | ||
| 0xA0, 0xA0, 0xA0, 0x40, 0x40, /* 0x56 V */ | ||
| 0xA0, 0xA0, 0xE0, 0xE0, 0xA0, /* 0x57 W */ | ||
| 0xA0, 0xA0, 0x40, 0xA0, 0xA0, /* 0x58 X */ | ||
| 0xA0, 0xA0, 0x40, 0x40, 0x40, /* 0x59 Y */ | ||
| 0xE0, 0x20, 0x40, 0x80, 0xE0, /* 0x5A Z */ | ||
| 0xE0, 0x80, 0x80, 0x80, 0xE0, /* 0x5B bracketleft */ | ||
| 0x80, 0x40, 0x20, 0x00, 0x00, /* 0x5C backslash */ | ||
| 0xE0, 0x20, 0x20, 0x20, 0xE0, /* 0x5D bracketright */ | ||
| 0x40, 0xA0, 0x00, 0x00, 0x00, /* 0x5E asciicircum */ | ||
| 0xE0, 0x00, 0x00, 0x00, 0x00, /* 0x5F underscore */ | ||
| 0x80, 0x40, 0x00, 0x00, 0x00, /* 0x60 grave */ | ||
| 0xC0, 0x60, 0xA0, 0xE0, 0x00, /* 0x61 a */ | ||
| 0x80, 0xC0, 0xA0, 0xA0, 0xC0, /* 0x62 b */ | ||
| 0x60, 0x80, 0x80, 0x60, 0x00, /* 0x63 c */ | ||
| 0x20, 0x60, 0xA0, 0xA0, 0x60, /* 0x64 d */ | ||
| 0x60, 0xA0, 0xC0, 0x60, 0x00, /* 0x65 e */ | ||
| 0x20, 0x40, 0xE0, 0x40, 0x40, /* 0x66 f */ | ||
| 0x60, 0xA0, 0xE0, 0x20, 0x40, /* 0x67 g */ | ||
| 0x80, 0xC0, 0xA0, 0xA0, 0xA0, /* 0x68 h */ | ||
| 0x80, 0x00, 0x80, 0x80, 0x80, /* 0x69 i */ | ||
| 0x20, 0x00, 0x20, 0xA0, 0x40, /* 0x6A j */ | ||
| 0x80, 0xA0, 0xC0, 0xC0, 0xA0, /* 0x6B k */ | ||
| 0xC0, 0x40, 0x40, 0x40, 0xE0, /* 0x6C l */ | ||
| 0xE0, 0xE0, 0xE0, 0xA0, 0x00, /* 0x6D m */ | ||
| 0xC0, 0xA0, 0xA0, 0xA0, 0x00, /* 0x6E n */ | ||
| 0x40, 0xA0, 0xA0, 0x40, 0x00, /* 0x6F o */ | ||
| 0xC0, 0xA0, 0xA0, 0xC0, 0x80, /* 0x70 p */ | ||
| 0x60, 0xA0, 0xA0, 0x60, 0x20, /* 0x71 q */ | ||
| 0x40, 0x80, 0x80, 0x80, 0x00, /* 0x72 r */ | ||
| 0x60, 0xC0, 0x60, 0xC0, 0x00, /* 0x73 s */ | ||
| 0x40, 0xE0, 0x40, 0x40, 0x60, /* 0x74 t */ | ||
| 0xA0, 0xA0, 0xA0, 0x60, 0x00, /* 0x75 u */ | ||
| 0xA0, 0xA0, 0xE0, 0x40, 0x00, /* 0x76 v */ | ||
| 0xA0, 0xE0, 0xE0, 0xE0, 0x00, /* 0x77 w */ | ||
| 0xA0, 0x40, 0x40, 0xA0, 0x00, /* 0x78 x */ | ||
| 0xA0, 0xA0, 0x60, 0x20, 0x40, /* 0x79 y */ | ||
| 0xE0, 0x60, 0xC0, 0xE0, 0x00, /* 0x7A z */ | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think you deleted a few too much now...
So your table needs to have everything up to 126 = 0x7E. |
||
| }; | ||
Uh oh!
There was an error while loading. Please reload this page.