Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/w-mai/font2img
A Freetype Playground.
https://github.com/w-mai/font2img
Last synced: 26 days ago
JSON representation
A Freetype Playground.
- Host: GitHub
- URL: https://github.com/w-mai/font2img
- Owner: W-Mai
- License: mit
- Created: 2024-01-20T12:51:44.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-01-25T08:03:45.000Z (11 months ago)
- Last Synced: 2024-01-25T09:28:26.434Z (11 months ago)
- Language: C++
- Size: 7.14 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Font2Img
A Freetype Playground.
# How to build
```shell
meson compile -C build
```# Features
- [ ] Font loading and rendering.
- [x] Load bitmap.
- [ ] Load outline.
- [ ] Load SVG
- [x] Font rendering in the console.# Snapshot
### Render 龘 in the console with rotation 30 degrees.
```shell
Width: 29
Height: 30
Advance: 49
.
*##. .
*@@#. #@#
#*. .@@ *#@@@
.####@# *##*
.*##. *@#*
*@#. .*##. .#@#*##* *.
@@**##* *##@@* *@#
#@@* *##* *##* @@#.
.@@..##* .##* *##* #@# *##.
#@@*. .##* .##* . *##. *##*
*@@ *##. .*#*. #@* * .##. *##*
*#* *##. .*#@# #@##* .##* .##*
#* ** *##..@@* .@@* *#*. .##* .##
####@ *#. .@@# #@#*#*. *#*. .@#.
.. @* *#*. .#@#.*@@. *@@#. *#*. *##*@@
*#@* ##*. *@* .*#@# #@# .##. *##. *#*
*. *#### @@#. *@###. .##. .##.
.@@#*. .## #@# .##. .@# .##* .##* ..
#@# .##. .#* .## ##* .*#* .##*
*@#*#* #@. #* .#*. ##* .#. .##* .*#*
@@# *#@# *@#.#*.#@. *@##@* .##*. **
#@# *#*.@@ @@#. .## ** *@ .*#* .*#*. #*
.@@ #@* #@# .*#. .*#@. ##.* *#* .*#@@@.
. .*.*@@ .@@.*#. . .* *##@. #@#. .
.*#@. #@#*. .*# #@*#*. *## *@# .##.
@@ .**. *@# .#*. *#* .##.
.##. *. @@.*#* .@@ #* *#*
.##*@# #@#. *@@* #@#*#* .@@.
.. .@# *#**@# .@@#. .#@#
#@* .@@. #@# .*#.
#*.*@# .@@*#*. .**
.#@@ #@#* .#*.
.@@ .**
.##. .#
*#*.*@#
.*#Process finished with exit code 0
```