-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use upstream go-bdf library instead of our fork. The zachomedia/go-bdf has our changes merged and it has fixes to the bounds of the glyphs, which renders fonts much more nicely using pixlet. For example, a colon now has the appropriate spacing. * Added font embedding to the Makefile. This commit adds the font embedding utility to the make file so that we can embed new fonts on build. * Added a font preview example. This commit adds a preview to examples to preview new fonts in the repo. * Added tom-thumb font. This commit adds the Tom Thumb font found here: https://robey.lag.net/2010/01/23/tiny-monospace-font.html This font is supy tiny and allows for packing some serious information onto a display. * Fixed false comment. The all uppercase comment can be true, but we'd need to modify this font. I honestly think we should add a tom-thumb-upper that has all lowercase characters removed and the height set to 5.
- Loading branch information
1 parent
8165bef
commit 1ddc377
Showing
9 changed files
with
2,420 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
load("render.star", "render") | ||
|
||
def main(config): | ||
font = config.get("font", "tb-8") | ||
print("Using font: '{}'".format(font)) | ||
return render.Root( | ||
child = render.Column( | ||
children = [ | ||
render.Box( | ||
width = 64, | ||
height = 1, | ||
color = "#78DECC", | ||
), | ||
render.Marquee( | ||
width = 64, | ||
child = render.Text("The quick brown fox jumps over the lazy dog", font = font), | ||
), | ||
render.Box( | ||
width = 64, | ||
height = 1, | ||
color = "#78DECC", | ||
), | ||
render.Marquee( | ||
width = 64, | ||
child = render.Text("THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG", font = font), | ||
), | ||
render.Box( | ||
width = 64, | ||
height = 1, | ||
color = "#78DECC", | ||
), | ||
render.Marquee( | ||
width = 64, | ||
child = render.Text("!@#$%^&*()_+:?><~`", font = font), | ||
), | ||
render.Box( | ||
width = 64, | ||
height = 1, | ||
color = "#78DECC", | ||
), | ||
], | ||
), | ||
) |
Oops, something went wrong.