package nanosvg_text

  1. Overview
  2. Docs
Text rendering for NanoSVG text nodes

Install

Dune Dependency

Authors

Maintainers

Sources

nanosvg-0.1.tbz
sha256=65072bf543aec603643a80b62c42ed5b74d4c932ee885df6cca6e725c15038f3
sha512=53ac01f01326a10dca1439adc56bec80e01f7ba2461834f1f799d23af65ec5f26096d6ec9aa8a3d4ec9c9e77083a493914f497c31a5fa9957d131edd162e5507

Description

Basic text rendering for NanoSVG text nodes using stb_truetype

Published: 24 Jan 2023

README

OCaml bindings to Nano SVG

Nano SVG is a simple single-header SVG parser and rasterizer.

This library implements OCaml bindings to NanoSVG while vendoring the C implementation, thus providing a standalone OCaml library.

Example program

See example/example1.ml. Building it additionally requires tsdl to be installed.

opam install tsdl

make example
# or
dune exec -- example/example1.exe example/23.svg

Dependencies (4)

  1. stb_truetype >= "0.7"
  2. nanosvg >= "0.1"
  3. dune >= "2.7"
  4. ocaml >= "4.12.0"

Dev Dependencies (1)

  1. odoc with-doc

Used by (1)

  1. memgraph_kitty

Conflicts

None

OCaml

Innovation. Community. Security.