https://github.com/rhaeguard/phont
very basic true-type font rendering
https://github.com/rhaeguard/phont
font-rendering fonts raylib ttf-fonts
Last synced: about 2 months ago
JSON representation
very basic true-type font rendering
- Host: GitHub
- URL: https://github.com/rhaeguard/phont
- Owner: rhaeguard
- License: mit
- Created: 2024-04-16T09:16:16.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-03T22:58:37.000Z (11 months ago)
- Last Synced: 2025-03-05T19:09:10.946Z (about 2 months ago)
- Topics: font-rendering, fonts, raylib, ttf-fonts
- Language: Python
- Homepage:
- Size: 3.2 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# phont
A very basic True-Type Font rendering.
https://github.com/rhaeguard/phont/assets/23038785/0a89fede-0c71-4ccb-94cf-748a33762784
## setup
From within the root directory:
```
pip install -r requirements.txt
python main.py
```## todo??
- [x] Incorporate the metrics properly
- [x] Antialiasing (_it's a very simple subpixel antialiasing_)
- [ ] Blinking cursor to show the position.
- [ ] Allow moving cursor
- [ ] Open a file
- [ ] UI to allow users to select different fonts or open files
- [ ] Allow more controls over the font size, color, etc.
- [ ] Read the font contents without a special library (`fonttools` in this case)## fonts used for experimenting
I do not own any of the fonts used in this repository. All the fonts are used for experimentation purposes and no commercial use.
- [EB Garamond](https://github.com/georgd/EB-Garamond)
- [Fira Code](https://github.com/tonsky/FiraCode)