Movatterモバイル変換


[0]ホーム

URL:


packagegraphv_font

  1. Overview
  2. Docs

You can search for identifiers within the package.

in-package search v0.2.0

Functor for generating the Graphv font library

Install

Dune Dependency

Authors

Maintainers

Sources

graphv-v0.1.1.tbz
sha256=29968fe3169b937224e8b59c644825fb6f48ca6d772f7b1d9a274089f542e89e
sha512=449bdaffabc61eadd183c16fdf2a0c67bdb0773fc9623c254e71e293ae2c4f182d29b78d746663cc8b01715831b4625e6610295fb7baf321ad148e52d1715ae7

Description

Published:06 Sep 2021

README

Graphv

Overview

Port of theNanoVG C library to (mostly) pure OCaml. This library is still a work in progress, the documentation is not complete and there could be more examples. Some context flags are also not passed down to the backend renderer yet.

Docs

Docs can be foundhere. They are still a work in progress.

Screenshots

Demo

A live web demo can be foundhere. If the fonts look wrong the first time, refresh.

Performance varies quite a lot between browsers, Chrome tends to be the fastest. The demo supports mouse and touch events. Clicking/tapping will zoom the top-left widget, hovering the text will highlight rows, and two fingers on mobile will allow zooming/panning. Dragging a single finger on mobile will make the eyes follow the finger.

Performance

Below is a table of eye-ball measurements of frame times across platforms compared with the native C implementation of NanoVG. All times are in millseconds (ms). Measurements were taken on a MacBook Pro Late 2013 laptop. The program being tested is the one shown in the screenshots above.

PlatformOCamlNanoVG (GLES2)NanoVG JS
Linux Native1.05 +/- 0.051.00 +/- 0.05N/A
Linux Chrome5.50 +/- 2N/A5.50 +/- 2
Linux Firefox12.00 +/ 5N/A8.00 +/- 2

Licenses

Project is licensed under MIT. Fonts used in examples:

  • Roboto licensed under Apache license

  • Entypo licensed under CC BY-SA 4.0.

  • Noto Emoji licensed under SIL Open Font License, Version 1.1

Dependencies (2)

  1. graphv_core_lib= "0.1.1"
  2. dune>= "2.8"

Dev Dependencies (2)

  1. odocwith-doc
  2. ppx_expect>= "v0.14.1" & with-test

Conflicts

None


[8]ページ先頭

©2009-2025 Movatter.jp