|4 days ago||about 1 month ago|
|GNU General Public License v3.0 or later||zlib License|
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Libsodium: A modern, portable, easy to use crypto library
9 projects | news.ycombinator.com | 14 Sep 2023
For C/C++ projects that use meson as the build system, there is an excellent way to manage dependencies:
meson will download and build the libraries automatically and give you a variable which you pass as a regular dependency into the built target:
Or, if you're using proper operating systems, they're managed by the usual package manager, just like everything else.
The Web Assembly Shaper
2 projects | news.ycombinator.com | 9 Jul 2023
Text Rendering Hates You
5 projects | news.ycombinator.com | 26 Jun 2023
If you sympathize with the travails of people working on text rendering in applications, please consider supporting (among other projects):
1. The LibreOffice project (libreoffice.org), the free office application suite. This is where the rubber hits the road and developers deal with the extreme complexities of everything regarding text - shaping, styling, multi-object interaction, multi-language, you name it. And - they/we absolutely need donations to manage a project with > 200 million users: https://www.libreoffice.org/donate
2. harfbuzz (https://harfbuzz.github.io), and specifically Behdad Esfahood the main contributor. Although, TBH, I've not quite figured out whether you can donate to that or to him. At least star the project on GitHub I guess.
ImGui or text rendering libraries
7 projects | /r/C_Programming | 6 Apr 2023
As for text, it depends very heavily on what exactly you need. Simple ASCII text and bitmap fonts? Just do it yourself or get a .bdf parser. Simple Latin/Cyrillic-like writing with ok-looking vector fonts (ttfs)? stb_truetype has all you need. Font hinting, subpixel rendering? You use freetype. More complex writing like Arabic? You will have to do shaping as well, say with HarfBuzz. Need right-to-left or unidirectional text? Hypenation? Go for platform APIs if you can (DirectWrite om Windows, CoreText on Mac).
QuestPDF: Modern .NET library for PDF document generation
14 projects | news.ycombinator.com | 18 Jan 2023
Gold standard? Even though serious bugs are not fixed  because "the code is too fragile to touch at this point"? Looks like Android uses HarfBuzz, if so it can't be that bad.
A Programmable Markup Language for Typesetting [pdf]
9 projects | news.ycombinator.com | 18 Jan 2023
The linked libraries are not even close to solving limited subsets of problems solved by FreeType or HarfBuzz. No test is needed if they do not even have a working implementation of particular requisites: Do they work on heterogeneous layouts, directions, languages, locales, scripts, symbols and composites, extensions, variations, legacy, missing, partial or corrupted instructions, standards interpretations, platforms, output devices, nonstandard point structures and grids?
They do not. What they solve is almost a toy problem compared to the size, scope and breadth of these libraries.
Just because some project is implemented in Rust does not make it comparable never mind superior by default.
There is a world out there and it is not homogeneous format and standards-compliant Latin fonts in English LTR text in linear disposition with some generic rectangular subpixel rendering on a regular rectangular grid.
I warmly welcome you to browse closed issues of FreeType  and also the closed issues of HarfBuzz . If you feel inspired please do also look into mailing lists and discussion pages related to the development, building, tracking and patching of packages of these projects in any of the numerous places it is used.
The only argument Rust people have is in relation WASM but if you insist in targeting WASM why not fork FreeType, strip it to the strict subset of features your application needs and target it?
Why do it in the first place? Why reinvent the wheel?
As such I will restate my view: I see no gain in using any of these subpar libraries.
Ask HN: What are some excellent pieces of software written by a single person?
9 projects | news.ycombinator.com | 8 Nov 2022
I'm not sure if it truly fits this category, but HarfBuzz, maintained primarily by Behdad Esfahbod, comes to mind.
da zero a programmare un programma di scrittura e una tastiera?
3 projects | /r/ItalyInformatica | 6 Oct 2022
Is There An Algorithm To How Computer Cursors Highlight Text?
2 projects | /r/computerscience | 12 Jun 2022
harfbuzz is a popular library for text rendering. You may also want to check out rustybuzz, a small subset of harfbuzz ported to Rust with pretty great documentation.
2 projects | /r/opengl | 1 May 2022
I also use HarfBuzz to take care of text shaping (because some languages require different glyphs depending on the context - Arabic for example requires letters to be connected in a word).
nanovg VS nitro-gl - a user suggested alternative
2 projects | 21 Aug 2023
Cairo – Open-Source 2D Graphics Layer/API with Fonts and Many Back-Ends
6 projects | news.ycombinator.com | 17 Jul 2023
2D graphics lib recommendation?
6 projects | /r/C_Programming | 20 Apr 2023
I use nanovg for my projects and it works surprisingly well for its size. It integration is pretty simple .... if you know a little bit of OpenGL, otherwise there is a slight learning curve.
minimax — minimalist 3D game engine in Clojure
5 projects | /r/Clojure | 26 Feb 2023
The "engine" is built on top of amazing https://www.lwjgl.org/ and https://github.com/bkaradzic/bgfx/, and UI system is baked by https://github.com/memononen/nanovg and https://github.com/facebook/yoga
W4 Games formed to strengthen Godot ecosystem
3 projects | news.ycombinator.com | 9 Aug 2022
NanoVG is the closest thing I came across when I had a similar quesiton: https://github.com/memononen/NanoVG
unfortunately it doesn't seem like it's getting steady updates now unlike the last time I checked. But I imagine it's pretty mature at this point. There also seem to be ports in Metal/DX11 if you didn't want to be stuck in OpenGL.
Why are there so little Skia recources?
3 projects | /r/GraphicsProgramming | 6 Aug 2022
Also there's NanoVG if you really want a vector api in C, but don't need anti-aliased clipping.
Advice for the next dozen Rust GUIs
14 projects | news.ycombinator.com | 15 Jul 2022
Getting sufficient antialiasing quality for 2D graphics is difficult on GPUs. https://github.com/memononen/nanovg accomplishes this with GL2/GLES2 level hardware for most of the stuff one would want to render as part of a GUI. My project https://github.com/styluslabs/nanovgXC supports rendering arbitrary paths with exact coverage antialiasing, but requires GLES3.1 or GL4 level hardware for reasonable performance.
Ask HN: Modern Alternatives to C
5 projects | news.ycombinator.com | 30 Apr 2022
> to learn the 'nuts and bolts' of rendering
These nuts and bolts are very different between CPU and GPU. CPU-based libraries are painting pixels in bitmaps in system memory. Most GPU-based libraries are uploading indexed triangle meshes, and rendering them with weird shaders.
Worse, there're no good open source implementations of GPU-based ones. Microsoft ships an implementation as a part of OS (Direct2D) but it's not open source. Linux simply doesn't have an equivalent.
At least for initial versions, consider C interop with this https://github.com/memononen/nanovg It cuts a few corners (no cleartype for text, CPU overhead for repeated rendering of same static paths) but it's still good overall, simple, and easy to use.
> My only concern with C# is the cross compatibility
Works well on Linux, Windows and OSX, including ARM CPUs. Not sure about Android and iOS, never tested.
My largest concern with C# would be performance. Technically the language allows to code in any style, but most guides and examples are using OO-heavy one.
Any good video tutorials on making a OS with a GUI?
5 projects | /r/osdev | 10 Dec 2021
In fact, if using a modern graphics pipeline with shaders, you will actually have to learn how to draw a single rectangle to your screen, and then use that knowledge to draw (anti-aliased) lines, rectangles, arcs, circles, ellipses, etc. too. For instance, have a look at https://www.cairographics.org/ https://github.com/vurtun/nuklear https://github.com/memononen/nanovg and https://github.com/nical/lyon. There are probably also tutorials on how to draw vectorized graphics using OpenGL, Vulkan, etc.
So you want to write a GUI framework
13 projects | news.ycombinator.com | 11 Aug 2021
What are some alternatives?
Skia - Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.
imgui - Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies
DiligentEngine - A modern cross-platform low-level graphics library and rendering framework
sokol - minimal cross-platform standalone C headers
MetalNanoVG - The Metal port of NanoVG.
bgfx - Cross-platform, graphics API agnostic, "Bring Your Own Engine/Framework" style rendering library.
imgui-sfml - Dear ImGui backend for use with SFML
raylib - A simple and easy-to-use library to enjoy videogames programming
Vrmac - Vrmac Graphics, a cross-platform graphics library for .NET. Supports 3D, 2D, and accelerated video playback. Works on Windows 10 and Raspberry Pi4.
microui - A tiny immediate-mode UI library
gi-gtk-declarative - Declarative GTK+ programming in Haskell
pathfinder - A fast, practical GPU rasterizer for fonts and vector graphics