nanovg
nanovg copied to clipboard
Antialiased 2D vector drawing library on top of OpenGL for UI and visualizations.
Hi, The current implementation draws everything sequentially on top of last drawing shape. Is it possible to create a layer based approach? It's like you will store all the drawing...
`void nanoVGinit(){ printf("Start init nanovg\n"); struct NVGcontext* vg = nvgCreateGL2(NVG_ANTIALIAS | NVG_STENCIL_STROKES);; printf("nvg init\n"); if (vg == NULL) { printf("Error initializing NanoVG.\n"); exit(EXIT_FAILURE); } printf("NANOVG INIT\n"); }` After running: Start...
I frequently get JVM crashes. Specs: Java 17, Windows 11, NanoVG 3.3.3 and LWJGL 3.3.1. They are sometimes random and never happen immediately after rendering. I create the NanoVGL3 context...
A check `if (cache->npaths > 0)` on function entry does not make sense given the loop `for (j = 0; j < cache->npaths; j++)` below. If an entry check passes,...
When you use different threads for layouting and drawing, you will notice that one aspect of nanovg becomes very limiting: you always need a full blown graphics context for everything....
I have noticed that the freetype fonts don't release their memory correctly. The fix would be: ``` void fonsDeleteInternal(FONScontext* stash) { int i; if (stash == NULL) return; if (stash->params.renderDelete)...
I used the following code to draw a fill five-pointed star, and I don't know why the fill color is protruding ``` nvgBeginPath(vg); struct Point { float x; float y;...
Richtext
Hi, This is only question. Maybe someone created extension which can format text line with different colors...? Like you can do in html. :) if yes, please can share the...
Hi, Is it possible to implement something like the clipPath tag in SVG with the current API? Something like the attached image. Thanks! 
Is there any plans to support ansi escapes. Specifically color escapes. The idea being that when a color sequence is encountered, it temporarily changes the color state. Is there a...