Skip to content

Commit

Permalink
examples: add examples/unicode_font3_const
Browse files Browse the repository at this point in the history
  • Loading branch information
sago35 authored and deadprogram committed Oct 23, 2024
1 parent b304892 commit 31ce933
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 31ce933

Please sign in to comment.