Skip to content

Commit b95b373

Browse files
committed
Release 0.7.0
Signed-off-by: deadprogram <ron@hybridgroup.com>
1 parent 801c7e8 commit b95b373

6 files changed

Lines changed: 107 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
0.7.0
2+
---
3+
- **all**
4+
- fix: GetGlyph falls back to index 0 when rune is not found
5+
- **build**
6+
- use TinyGo latest release for CI builds
7+
- **docs**
8+
- add font licensing information to README
9+
- **tinyfontgen-ttf**
10+
- bugfix for generating multiple fonts
11+
- **fontpreview**
12+
- add font preview generator and README samples
13+
14+
15+
0.6.0
16+
---
17+
- **modules**
18+
- update to drivers 0.31.0
19+
20+
121
0.5.0
222
---
323
- **all**

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2019-2024 TinyGo Authors. All rights reserved.
1+
Copyright (c) The TinyGo Authors. All rights reserved.
22

33
Redistribution and use in source and binary forms, with or without
44
modification, are permitted provided that the following conditions are

README.md

Lines changed: 80 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,90 @@ TinyFont
33

44
[![Build](https://github.com/tinygo-org/tinyfont/actions/workflows/build.yml/badge.svg?branch=dev)](https://github.com/tinygo-org/tinyfont/actions/workflows/build.yml)
55

6-
TinyFont is a font/text package for [TinyGo](https://tinygo.org/) displays. It is heavily based on [Adafruit's GFX library](https://github.com/adafruit/Adafruit-GFX-Library).
6+
TinyFont is a font/text package for [TinyGo](https://tinygo.org/) displays. It is heavily influenced by [Adafruit's GFX library](https://github.com/adafruit/Adafruit-GFX-Library).
77

88
![example](./images/tinyfont.png)
99
![example](./images/rubikmoonrocks.png)
1010

1111

12-
This package is experimental and may change in the future. It has not been optimized for speed or memory..
12+
This package is experimental and may change in the future. It has not been optimized for speed or memory.
1313

14-
## Faster compilation
15-
During compilation, tinygo will go through all the font files in a package and them discard them if not used. To improve compilation time considerably, move the files you are going to use to a new package.
14+
## Current Fonts
15+
16+
### freemono
17+
18+
![freemono sample](./images/freemono.png)
19+
20+
A monospaced serif font from the GNU FreeFont project. Available in regular, bold, oblique, and bold oblique styles at 9, 12, 18, and 24pt. Licensed under GPL v3.
21+
22+
### freesans
23+
24+
![freesans sample](./images/freesans.png)
25+
26+
A sans-serif font from the GNU FreeFont project. Available in regular, bold, oblique, and bold oblique styles at 9, 12, 18, and 24pt. Licensed under GPL v3.
27+
28+
### freeserif
29+
30+
![freeserif sample](./images/freeserif.png)
31+
32+
A proportional serif font from the GNU FreeFont project. Available in regular, bold, italic, and bold italic styles at 9, 12, 18, and 24pt. Licensed under GPL v3.
33+
34+
### gophers
35+
36+
![gophers sample](./images/gophers.png)
37+
38+
A decorative font featuring Go gopher-themed glyphs, created by @rakyll. Available at 14, 18, 22, 32, 58, and 121pt. Licensed under CC BY-NC 4.0.
39+
40+
### notoemoji
41+
42+
![notoemoji sample](./images/notoemoji.png)
43+
44+
Google's Noto Emoji font, providing a wide range of emoji glyphs. Available at 12, 16, and 20pt. Licensed under SIL Open Font License.
45+
46+
### notosans
47+
48+
![notosans sample](./images/notosans.png)
49+
50+
Google's Noto Sans font, designed to support text in all languages with a clean sans-serif appearance. Available at 12pt. Licensed under SIL Open Font License.
51+
52+
### proggy
53+
54+
![proggy sample](./images/proggy.png)
55+
56+
The classic Proggy programming font, a pixel-perfect monospaced bitmap font well suited for small displays. Available at 8pt.
57+
58+
### shnm
59+
60+
![shnm sample](./images/shnm.png)
61+
62+
The Shinonome (東雲) bitmap font family, a Japanese BDF bitmap font supporting Latin and JIS character sets. Available at 12pt. Licensed under a permissive open license from The Electronic Font Open Laboratory.
63+
64+
### org_01
65+
66+
![org_01 sample](./images/org_01.png)
67+
68+
Org_v01 by Orgdot. A tiny, stylized font with all characters fitting within a 6-pixel height.
69+
70+
### picopixel
71+
72+
![picopixel sample](./images/picopixel.png)
73+
74+
Picopixel by Sébastien Matos. A tiny pixel font with all characters fitting within a 6-pixel height.
75+
76+
### tiny3x3a2pt7b
77+
78+
![tiny3x3a2pt7b sample](./images/tiny3x3a2pt7b.png)
79+
80+
"Tiny3x3a" from FontStruct by Michaelangel007. An extremely compact 3×3 pixel font. Licensed under CC BY-NC-SA 3.0.
81+
82+
### tomthumb
83+
84+
![tomthumb sample](./images/tomthumb.png)
85+
86+
Tom Thumb, a 3×5 pixel monospaced bitmap font originally by Brian J. Swetland. One of the smallest legible fonts available. Licensed under the BSD 3-Clause License.
1687

1788
## About the fonts
89+
1890
The fonts compiled here were just converted or made compatible, and the original authors should be given proper credit. Each font is under its own license, and while most of them are under an _open license_, there might be differences in its usage and conditions.
1991

2092
## Generate your own font
@@ -24,6 +96,10 @@ You can use tinyfontgen to generate a tinyfont from a bdf/ttf font.
2496
https://github.com/tinygo-org/tinyfont/tree/release/cmd/tinyfontgen
2597
https://github.com/tinygo-org/tinyfont/tree/release/cmd/tinyfontgen-ttf
2698

99+
## Faster compilation
100+
101+
During compilation, tinygo will go through all the font files in a package and them discard them if not used. To improve compilation time considerably, move the files you are going to use to a new package.
102+
27103
## Incompatibility warning
28104

29105
This package contains incompatible changes from [previous versions](https://github.com/tinygo-org/tinyfont/commit/a02e4495f8d64b671d923ec009e17c9da9e3e7f5).

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require (
88
github.com/hajimehoshi/go-jisx0208 v1.0.0
99
github.com/sago35/go-bdf v0.0.0-20200313142241-6c17821c91c4
1010
golang.org/x/image v0.0.0-20220617043117-41969df76e82
11-
tinygo.org/x/drivers v0.31.0
11+
tinygo.org/x/drivers v0.35.0
1212
)
1313

1414
require (

go.sum

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@ golang.org/x/image v0.0.0-20220617043117-41969df76e82/go.mod h1:doUCurBvlfPMKfmI
99
golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
1010
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
1111
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
12-
tinygo.org/x/drivers v0.31.0 h1:Q2RpvTRMtdmjHD2Xyn4e8WXsJZKpIny3Lg4hzG1dLu4=
13-
tinygo.org/x/drivers v0.31.0/go.mod h1:ZdErNrApSABdVXjA1RejD67R8SNRI6RKVfYgQDZtKtk=
12+
tinygo.org/x/drivers v0.34.0 h1:lw8ePJeUSn9oICKBvQXHC9TIE+J00OfXfkGTrpXM9Iw=
13+
tinygo.org/x/drivers v0.34.0/go.mod h1:ZdErNrApSABdVXjA1RejD67R8SNRI6RKVfYgQDZtKtk=
14+
tinygo.org/x/drivers v0.35.0 h1:cTK36tsI/S4Mg3hCPH0MBjV/ta7XKQ+wpvch4mVqgsE=
15+
tinygo.org/x/drivers v0.35.0/go.mod h1:DQgKyHkB4G6IEOKVTAjApbKnWGwESN91EVJO+nMOE9Y=

version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ package tinyfont
44
// for support purposes.
55
//
66
// Update this value before release of new version of software.
7-
const Version = "0.6.0"
7+
const Version = "0.7.0"

0 commit comments

Comments
 (0)