Slughorn, Slug font/glyph render lib for OpenGL/OSG/Vulkan/GPU APIs (MIT lic))
3 hours ago
- #Vector Graphics
- #GPU Rendering
- #Open Source
- Slughorn is an open-source C++20 library designed to extend the Slug GPU curve-rendering technique beyond text, focusing on vector graphics like glyphs, SVG paths, and icons.
- It is MIT-licensed, requires no third-party dependencies, and supports import from sources like FreeType (for COLRv0/v1 emoji), NanoSVG, Skia, Cairo, and Blend2D, with optional features using submodules.
- The library acts as an input/adapter layer, providing Slug-compatible data for integration into existing renderers (e.g., OpenGL, Vulkan, DirectX) and scene graphs, rather than being a standalone renderer.
- It emphasizes high-quality, GPU-rendered curves to avoid artifacts from texture atlases or SDFs, making it suitable for 3D UI, AR/VR, HUDs, maps, and technical visualization where exact vector rendering is crucial.
- Slughorn includes Python tools via pybind11, MSDF sidecar data for effects, and current capabilities like transform support, programmatic content generation, and demos (e.g., OpenGL, OpenSceneGraph via osgSlug).
- Future directions include HarfBuzz integration, stroke handling, WebAssembly support, an offline editor, and experimental features like GDAL-backed map layers, with commercial consulting available from AlphaPixel for integration and development.