Run text rendering tests on OpenType.js
See original GitHub issueHi all, I’ve started a project for testing text rendering systems; the project is hosted/copyrighted by Unicode. Although this test suite is still very much in its infancy, you might still find it useful. Feel free to change its test framework so it runs node.js + OpenType.js on the test suite when passing --engine=OpenType.js
; your pull requests would be very welcome. Also, don’t hesitate to extend the test coverage if you want; you’d help other projects too.
https://github.com/icu-project/text-rendering-tests
Issue Analytics
- State:
- Created 7 years ago
- Reactions:3
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Unicode's test suite for text rendering engines - GitHub
Contribute to unicode-org/text-rendering-tests development by creating an account ... the tests are run using OpenType.js, another JavaScript font engine.
Read more >opentype.js and maker.js rendering incorrect path for text
This one won't run on SO, but it works fine on the console on the website I am programming on. Here is the...
Read more >JavaScript parser/writer for OpenType and TrueType fonts.
js is an OpenType and TrueType font parser and writer. It allows you to access the letterforms of text from the browser or...
Read more >Text Rendering - LearnOpenGL
In the early days, rendering text involved selecting a font (or create one yourself) you'd like for your application and extracting all relevant...
Read more >Techniques for Rendering Text with WebGL - CSS-Tricks
Drawing lines, debugging shaders, text rendering… they. ... Get Bezier curves from your .tff font file using OpenType.js.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Friendly ping, since this would have found https://github.com/nodebox/opentype.js/issues/273 much earlier. So here’s an offer. If somebody implements a command line tool in Node that can be called like this:
so the tool writes an SVG file to standard output, like the following output for
--testcase=SomeID/1
,--font
pointing to this test font, and--render="Jj"
:If you do that, I’ll make the necessary changes to the Unicode text rendering test suite so it calls your tool for
--engine=OpenType.js
. Then, we’ll get test reports like this for free.For the test cases with variable fonts, the test suite also passes an argument
--variation=M1:0.2;wght:721.5
. This means that axisM1
should be set to 0.2 and axiswght
to 721.5. Since OpenType.js doesn’t yet implement variable fonts, you could just ignore the--variation
argument for now.I’ve added a
bin/test-render
script that creates the SVG file in the correct format.I’ve also looked at integrating it into text-rendering-tests, and it shouldn’t be too hard. I’ll try to submit a PR tomorrow.