Jeremias Volker
Jeremias Volker
More: https://github.com/mfogel/polygon-clipping https://github.com/johnrees/clipper-fpoint https://github.com/hapticdata/toxiclibsjs/blob/master/lib/toxi/geom/SutherlandHodgemanClipper.js
I've given some feedback in the other thread. Your tool looks really promising. Thanks for that. ## Maybe this is helpful to some people in the meantime: I've realized manually...
@msurguy for your tool, are you using any other algorithms on top of what's shipped with https://github.com/junmer/clipper-lib? Thanks.
Thanks for getting back to me. Yes, I was very happy to come across your plugin and see that it existed. I'm looking into writing a web app that renders...
Okay, I've managed to implement it somehow: https://editor.p5js.org/jvolker/sketches/WGod7nyus The key is to use `fbo.color` when applying it to the shader, which removes the errors: ``` fbo = createFramebuffer(); theShader.setUniform('u_texture', fbo.color);...
I guess it would be okay to remove `fs` from this package entirely and let the user decide how to get the font data.
I've written an SVG font renderer based on this package, which should hopefully be helpful and allows downloading: https://jvolker.github.io/svg-font-renderer/
I've tried the [Node.js test example](https://github.com/techninja/hersheytextjs/blob/master/hersheytest.js) using 'hershey_sans_1' as a font (the one from above). It doesn't have that kerning issue. Although, it seems to be loading an `svg` font...
I've investigated a bit more and found that `p5-hershey-js` has [implemented left and right boundaries](https://github.com/LingDong-/p5-hershey-js/blob/7b7ab82bd515efbbadee2bde7b18c058003a6b30/p5.hershey.js#L52) using a [font source file](https://github.com/LingDong-/p5-hershey-js/blob/master/p5.hershey.data.js) which seems a bit closer to the [original Hershey file](https://emergent.unpythonic.net/software/hershey)...
As mentioned in #6 and #2 this is a browser-based SVG font renderer developed by me: https://github.com/jvolker/svg-font-renderer It's based on this package and doesn't have the above mentioned kerning issues.