graphics/nanosvg 20241219 FreeBSD
Simple C++ header-only SVG parser
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- ZLIB
- Categories
- graphics
- Package size
- 28.0 KiB, 120.0 KiB installed
Description
NanoSVG is a simple stupid single-header-file SVG parse. The output of the parser is a list of cubic bezier shapes.
The library suits well for anything from rendering scalable icons in your editor application to prototyping a game.
NanoSVG supports a wide range of SVG features, but something may be missing, feel free to create a pull request!
The shapes in the SVG images are transformed by the viewBox and converted to specified units. That is, you should get the same looking data as your designed in your favorite app.
NanoSVG can return the paths in few different units. For example if you want to render an image, you may choose to get the paths in pixels, or if you are feeding the data into a CNC-cutter, you may want to use millimeters.
The units passed to NanoSVG should be one of: 'px', 'pt', 'pc' 'mm', 'cm', or 'in'. DPI (dots-per-inch) controls how the unit conversion is done.
If you don't know or care about the units stuff, "px" and 96 should get you going.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | graphics/nanosvg | 20241219 |
| OpenBSD | graphics/nanosvg | 20221222 |
| DragonFly | graphics/nanosvg | 20241219 |
Install
Binary package:
pkg install nanosvg
From the ports tree:
cd /usr/ports/graphics/nanosvg/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= nanosvg>0:graphics/nanosvg
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 20241219 | 20241219 | g20210903 | 20241219 | 20241219 |
| FreeBSD:14:quarterly | 20241219 | 20241219 | n/a | 20241219 | 20241219 |
| FreeBSD:15:latest | 20241219 | 20241219 | n/a | 20241219 | 20241219 |
| FreeBSD:15:quarterly | 20241219 | 20241219 | n/a | n/a | n/a |
| FreeBSD:16:latest | 20241219 | 20241219 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
The full lists below include those, and their dependencies in turn.
Configuration
No options to configure.
- USES
- cpe
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| memononen-nanosvg-20241219-ea6a6ac_GH0.tar.gz | 297985 | 1f69560fefa7c97d0497753d898514dae52146faeb626c6a252d59b224198d64 |
Commit history 0
No commits in the history this site was built from.