russhughes / ttgo-hershey-fonts Goto Github PK
View Code? Open in Web Editor NEWMicroPython Hershey font demo for the TTGO-LCD board
License: MIT License
MicroPython Hershey font demo for the TTGO-LCD board
License: MIT License
Is it possible to rotate the screen orientation ?
Sorry for raising this as an issue but I am interested in your code and have a few comments and queries.
My experience is with bitmapped fonts rather than vectors, but I assumed that a primary benefit of vector fonts was that they are scalable at runtime. As far as I can see your code renders them at a fixed size. Why is this?
Secondly, how do you get from a published Hershey font file to a Python font? There doesn't seem to be a vector equivalent to my font-to-py
utility.
Looking at your video, I'm impressed at the speed of rendering from files. I found rendering bitmapped file fonts too slow for anything except ePaper displays, and stopped using binary font files as a consequence. I guess the performance is a mark of the efficiency of vector formats. I find font files frozen as bytecode are extraordinarily RAM-efficient. However with the speed you're getting, files save the hassle of freezing code. With solutions to the two queries above, vector fonts look very interesting.
A final thought. I have a set of display drivers published as part of nano-gui. These support a variety of display controllers. While they can be used with nano-gui
and micro-gui
, they can also be used stand-alone. All offer a class subclassed from framebuf.FrameBuffer
, and therefore inherit basic graphics primitives. Hopefully sufficient for rendering vectors. If you provided a way to render your fonts to a FrameBuffer
instance you would achieve automatic compatibility with a range of graphics hardware including OLED, ePaper, Sharp and TFT. Also including the TTGO which could be used for testing. Just a thought...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.