Skip to content
Tech News
← Back to articles

Show HN: Svglib a SVG parser and renderer for Windows

read original get SVG Viewer for Windows → more articles
Why This Matters

Svglib provides a lightweight SVG parsing and rendering library optimized for Windows, enabling Win32 applications and games to easily display SVG images without external dependencies. Its GPU-assisted rendering via Direct2D ensures efficient performance, making it a valuable tool for developers seeking seamless SVG integration. This development simplifies graphics workflows and enhances visual capabilities across Windows-based applications.

Key Takeaways

What is It?

svglib is a SVG file parser and renderer library for Windows. It uses Direct2D for GPU assisted rendering and XMLLite for XML parsing. They are core components of Windows. You don't need to download any external libraries to compile and distribute applications that use svglib .

This is meant for Win32 applications and games to easily display SVG images. Just enough of the SVG spec is covered for the library to be useful in most situations.

Build Instructions

You will need Visual Studio Community Edition with C++ language support.

Clone this repo.

git clone [email protected]:bibhas2/svglib.git

Clone mgui . This is used by some of the test applications only and not by svglib .

git clone [email protected]:bibhas2/mgui.git

Open the solution svglib/svglib.sln in Visual Studio Community Edition and build the solution.

... continue reading