Giter Site home page Giter Site logo

ttgo-hershey-fonts's People

Contributors

russhughes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ttgo-hershey-fonts's Issues

A couple of queries

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...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.