Const-me/nanovg
View on GitHub ↗ ★ 33 C
Antialiased 2D vector drawing library on top of OpenGL for UI and visualizations.
12 mentions on Hacker News by 1 person: 0 stories, 12 comments · first 2019-07-14 · latest 2024-11-18
20082026
-
…is pretty good. BTW, when I needed it, I have ported C algorithm from fontstash library to C++: https://github.com/Const-me/nanovg/blob/master/src/FontStash...
comment by Const-me · 2024-11-18 · in The Skyline algorithm for packing 2D rectangles -
…to create texture atlases I copy-paste from Mikko Mononen. Here’s a C++ port of his C version: https://github.com/Const-me/nanovg/blob/master/src/FontStash...
comment by Const-me · 2024-06-22 · in Eight million pixels and counting: improving texture atlas allocation in Firefox (2021) -
…is an awesome vector graphics library, but has limitations. (1) no ClearType, I fixed in my fork: https://github.com/Const-me/nanovg (2) The only way to get AA is hardware MSAA, unfortunately many popular platforms like Raspberry Pi don’t…
comment by Const-me · 2021-08-12 · in So you want to write a GUI framework -
…NanoVG They’re similarities, I have copy-pasted a few text-related things from my fork of NanoVG: https://github.com/Const-me/nanovg/ However, Vrmac delivers much higher quality of 2D vector graphics (VAA, circular arcs, thin strokes,…
comment by Const-me · 2021-03-16 · in 2D Graphics on Modern GPU (2019) -
…https://github.com/memononen/fontstash/blob/203fec2eb6a8905a... And ported from C to C++: https://github.com/Const-me/nanovg/blob/master/src/FontStash... Font atlas is required to be dynamic because Unicode has too many different…
comment by Const-me · 2021-02-04 · in Improving texture atlas allocation in WebRender -
…couple years back, chose not to. I picked NanoVG (later on I’ve patched it a bit improving fonts https://github.com/Const-me/nanovg ), compiled a shared library, consumed from .NET Core, and implemented a GUI in C#, with animated…
comment by Const-me · 2020-10-28 · in Graphical User Interface Using Flutter in Embedded Systems [pdf] -
I once forked a C library, porting some parts to C++ in the process: https://github.com/Const-me/nanovg/ I’ve retained original C API, only used C++ in the implementation. Then I’ve got an e-mail from a developer who asked a few things how…
comment by Const-me · 2019-12-08 · in How to write better game libraries -
…lack CPU and GPU power to handle high DPI. Here's a library I've made for an embedded Linux device: https://github.com/Const-me/nanovg At 5" 800x480, subpixel AA improved text a lot.
comment by Const-me · 2019-09-29 · in Text Rendering Hates You -
…Or they’re rendered on CPU? Does it support ClearType-like font rendering, like this forked NanoVG? https://github.com/Const-me/nanovg/ Is there something comparable to WPF’s D3DImage to insert custom 3D content? In my custom library, I’ve…
comment by Const-me · 2019-09-16 · in The Raspberry Beer’o’meter -
I recently needed that, too: https://github.com/Const-me/nanovg/ Also using FreeType, but unlike that article rendering on GPU, with ClearType. No advanced typography features are supported, though.
comment by Const-me · 2019-07-21 · in Modern text rendering with Linux: Part 1 -
Depends on the library. If it's a good one, makes sense to adopt, I sometimes do: https://github.com/Const-me/nanovg Some libraries have hundreds of megabytes of their own dependencies hard to remove. Some libraries have very low code…
comment by Const-me · 2019-07-14 · in Ask HN: When does it make sense to roll your own X?