let-def / stb_truetype

OCaml bindings to stb_truetype, a public domain truetype font rasterizer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stb_truetype is an OCaml binding to stb_truetype from Sean Barrett, Nothings:

stb_truetype.h: public domain C truetype rasterization library

The OCaml binding is released under CC-0 license. It has no dependency beside working OCaml and C compilers (stb_truetype is self-contained).

$ make
$ make install

CHANGELOG

Version 0.7, Thu Jan 12 15:56:31 JST 2023 Use Unix.mapfile instead of Bigarray.*.map_file. Add glyph manipulation primitives (contributed by @Armael).

Version 0.6, Sun Jul 8 17:35:11 CEST 2018 Some stubs were wrong with bytecode backend

Version 0.5, Sat Feb 3 07:05:53 CET 2018 FFI code was wrong with OCaml < 4.05.0 due to missing macro!

Version 0.4, Wed Jan 17 20:43:52 JST 2018 Change font representation to behave well with OCaml ad-hoc primitives. Support only OCaml >=4.02 because of [@@noalloc] (could be made optional?)

Version 0.3, Sun Nov 12 11:52:38 CET 2017 Add glyph bluring primitive

Version 0.2, Sun Nov 27 19:59:41 CET 2016 Update to stb_truetype.h v1.12 and stb_rect_pack.h v0.10

Version 0.1, Fri Sep 18 20:53:03 CET 2015 Initial release

About

OCaml bindings to stb_truetype, a public domain truetype font rasterizer

License:Creative Commons Zero v1.0 Universal


Languages

Language:C 88.4%Language:OCaml 11.5%Language:Makefile 0.1%