mfek / glifrenderer.rlib Goto Github PK
View Code? Open in Web Editor NEWA Skia renderer that takes an MFEK glyph and draws it out to the canvas. This is used in both MFEKufo and MFEKglif.
License: Apache License 2.0
A Skia renderer that takes an MFEK glyph and draws it out to the canvas. This is used in both MFEKufo and MFEKglif.
License: Apache License 2.0
Drawing TT2020 glyphs is possible, but renders on my machine at only around 15FPS. Not as bad as FontForge's 0.33FPS, but not ideal.
I think it's mostly due to how many paths we're creating. (perf
backs this theory up if I'm reading it right.) I think I can solve this with a little good old fashioned indirection, by drawing every point that will be the same color/stroke width in a single path.
(Also, we probably shouldn't draw selected points twice, but this isn't as big a problem as creating thousands of Path
s/Paint
s.)
Rust iterators should make this easier. Basically the current draw_point
will just add a rect/triangle/circle to a one-per-render_frame
struct, then we'll draw all the points with only four or five Path
s/Paint
s.
This might be post-1.0 as it's premature optimization, but am writing it down so don't forget.
In @eliheuer's exposition of MFEK/glif#235 he linked a cool image
I assume this is a heavily stylized Runebender (if so, good news for me, for MFEKglif is finally handily beating them in tool count, meaning we are rapidly closing the feature gap and will soon, (once we have a font overview in the form of MFEKufo) be able to declare MFEK does everything Runebender can).
So, this issue is just one of Runebender competition, we need that preview widget thing. It's also a cool feature, besides my competitive spirit, hehe.
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.