Skip to content

Commit

Permalink
Add examples/unicode_font3_const
Browse files Browse the repository at this point in the history
  • Loading branch information
sago35 committed Oct 19, 2024
1 parent a6b3b85 commit a1601ee
Show file tree
Hide file tree
Showing 5 changed files with 967 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ TARGET = build/examples_epd.hex \
build/examples_unicode_font_pyportal.hex \
build/examples_unicode_font_wioterminal.hex \
build/examples_unicode_font2_pyportal.hex \
build/examples_unicode_font2_wioterminal.hex
build/examples_unicode_font2_wioterminal.hex \
build/examples_unicode_font3_const2bit_pyportal.hex
.PHONY: smoke-test $(TARGET)
smoke-test: clean $(TARGET)

Expand Down Expand Up @@ -70,3 +71,7 @@ build/examples_unicode_font2_pyportal.hex:
build/examples_unicode_font2_wioterminal.hex:
$(TINYGO) build -size short -o $@ -target=wioterminal ./examples/unicode_font2
@$(MD5SUM) $@

build/examples_unicode_font3_const2bit_pyportal.hex:
$(TINYGO) build -size short -o $@ -target=pyportal ./examples/unicode_font3_const2bit
@$(MD5SUM) $@
20 changes: 20 additions & 0 deletions examples/unicode_font3_const2bit/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# unicode\_font3\_const

Testing with pyportal.

```
$ tinygo build -o app.uf2 -target pyportal -size short ./examples/unicode_font3_const2bit
```

![](unicode_font3_const2bit.jpg)

The font was created as follows.

```
tinyfnotgen-ttf --size 12 --verbose --output ./font.go --string-file ./main.go --package main --fontname Notosans12pt ./NotoSansJP-Regular.otf ./NotoSansKR-Regular.ttf
```

You can download the original TTF/OTF fonts used with tinyfontgen-ttf from the following link. Please refer to the downloaded file for the license and other details.

* https://fonts.google.com/noto/specimen/Noto+Sans+JP
* https://fonts.google.com/noto/specimen/Noto+Sans+KR
Loading

0 comments on commit a1601ee

Please sign in to comment.