Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
mensactrl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
stratum0
mensactrl
Commits
549d94e2
Commit
549d94e2
authored
10 years ago
by
comawill
Browse files
Options
Downloads
Patches
Plain Diff
enhanced bitmapfont (uses unicode)
parent
c3c784ea
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/bitmapfont.py
+17
-8
17 additions, 8 deletions
python/bitmapfont.py
with
17 additions
and
8 deletions
python/bitmapfont.py
+
17
−
8
View file @
549d94e2
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# 5x7 font from http://www.hwsw.no/snippets/5x7_LCD_font.php
# every byte contains pixel data for one column, LSB is on top, MSB is ignored.
FONT
=
{
"
"
:
[
0x00
,
0x00
,
0x00
,
0x00
,
0x00
],
"
!
"
:
[
0x00
,
0x00
,
0x4F
,
0x00
,
0x00
],
"
\"
"
:
[
0x00
,
0x0
7
,
0x00
,
0x0
7
,
0x00
],
"
\"
"
:
[
0x00
,
0x0
3
,
0x00
,
0x0
3
,
0x00
],
"
#
"
:
[
0x14
,
0x7F
,
0x14
,
0x7F
,
0x14
],
"
$
"
:
[
0x24
,
0x2A
,
0x7F
,
0x2A
,
0x12
],
"
%
"
:
[
0x23
,
0x13
,
0x08
,
0x64
,
0x62
],
"
&
"
:
[
0x36
,
0x49
,
0x55
,
0x22
,
0x50
],
"'"
:
[
0x00
,
0x0
5
,
0x03
,
0x00
,
0x00
],
"'"
:
[
0x00
,
0x0
0
,
0x03
,
0x00
,
0x00
],
"
(
"
:
[
0x00
,
0x1C
,
0x22
,
0x41
,
0x00
],
"
)
"
:
[
0x00
,
0x41
,
0x22
,
0x1C
,
0x00
],
"
*
"
:
[
0x14
,
0x08
,
0x3E
,
0x08
,
0x14
],
"
+
"
:
[
0x08
,
0x08
,
0x3E
,
0x08
,
0x08
],
"
,
"
:
[
0x00
,
0x
5
0
,
0x
3
0
,
0x00
,
0x00
],
"
-
"
:
[
0x0
8
,
0x08
,
0x08
,
0x08
,
0x08
],
"
.
"
:
[
0x00
,
0x
6
0
,
0x
6
0
,
0x00
,
0x00
],
"
,
"
:
[
0x00
,
0x
0
0
,
0x
6
0
,
0x00
,
0x00
],
"
-
"
:
[
0x0
0
,
0x08
,
0x08
,
0x08
,
0x08
],
"
.
"
:
[
0x00
,
0x
0
0
,
0x
4
0
,
0x00
,
0x00
],
"
/
"
:
[
0x20
,
0x10
,
0x08
,
0x04
,
0x02
],
"
0
"
:
[
0x3E
,
0x51
,
0x49
,
0x45
,
0x3E
],
...
...
@@ -30,8 +31,8 @@ FONT = {
"
7
"
:
[
0x01
,
0x71
,
0x09
,
0x05
,
0x03
],
"
8
"
:
[
0x36
,
0x49
,
0x49
,
0x49
,
0x36
],
"
9
"
:
[
0x06
,
0x49
,
0x49
,
0x29
,
0x1E
],
"
:
"
:
[
0x
36
,
0x36
,
0x00
,
0x00
,
0x00
],
"
;
"
:
[
0x
56
,
0x36
,
0x00
,
0x00
,
0x00
],
"
:
"
:
[
0x
00
,
0x00
,
0x24
,
0x00
,
0x00
],
"
;
"
:
[
0x
00
,
0x00
,
0x64
,
0x00
,
0x00
],
"
<
"
:
[
0x08
,
0x14
,
0x22
,
0x41
,
0x00
],
"
=
"
:
[
0x14
,
0x14
,
0x14
,
0x14
,
0x14
],
"
>
"
:
[
0x00
,
0x41
,
0x22
,
0x14
,
0x08
],
...
...
@@ -69,7 +70,7 @@ FONT = {
"
\\
"
:
[
0x02
,
0x04
,
0x08
,
0x10
,
0x20
],
"
]
"
:
[
0x00
,
0x41
,
0x41
,
0x7F
,
0x00
],
"
^
"
:
[
0x04
,
0x02
,
0x01
,
0x02
,
0x04
],
"
_
"
:
[
0x
4
0
,
0x40
,
0x40
,
0x40
,
0x40
],
"
_
"
:
[
0x
0
0
,
0x40
,
0x40
,
0x40
,
0x40
],
"
`
"
:
[
0x00
,
0x01
,
0x02
,
0x04
,
0x00
],
"
a
"
:
[
0x20
,
0x54
,
0x54
,
0x54
,
0x78
],
...
...
@@ -104,6 +105,14 @@ FONT = {
"
}
"
:
[
0x00
,
0x41
,
0x36
,
0x08
,
0x00
],
"
~
"
:
[
0x0C
,
0x02
,
0x0C
,
0x10
,
0x0C
],
"
\x7f
"
:
[
0x55
,
0xAA
,
0x55
,
0xAA
,
0x55
],
u
"
ä
"
:
[
0x20
,
0x55
,
0x54
,
0x55
,
0x78
],
u
"
ü
"
:
[
0x3C
,
0x41
,
0x40
,
0x21
,
0x7C
],
u
"
ö
"
:
[
0x38
,
0x45
,
0x44
,
0x45
,
0x38
],
u
"
Ä
"
:
[
0x7C
,
0x13
,
0x12
,
0x13
,
0x7C
],
u
"
Ü
"
:
[
0x3E
,
0x41
,
0x40
,
0x41
,
0x3E
],
u
"
Ö
"
:
[
0x3C
,
0x43
,
0x42
,
0x43
,
0x3C
],
u
"
ß
"
:
[
0x7F
,
0x01
,
0x49
,
0x4e
,
0x30
],
}
import
client
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment