package OCADml

  1. Overview
  2. Docs
Types and functions for building CAD packages in OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

OCADml-0.4.1.tbz
sha256=d12ea5331bb8b0b25ca3f7e422549897d19b02d27a8d4dc0e73e610ed39004de
sha512=316783fd40d16d0a40e747d93834dcf62cdfc71ab8081fbc874ddf8e6c4e807134ac3cb7e145b21845490f9238d8e431d007cc7fbe2e6f0414a0976db6d82c04

doc/OCADml.PolyText/PolyText/index.html

Module PolyTextSource

Point path representations (using Poly2.t) of text via ocaml-cairo import of system fonts. NOTE: Still somewhat experimental.

Ideally, the point representations obtained from fonts here should make it simple to produce rounded text extrusions. Unfortunately, the story there is somewhat fickle at the moment due to diffculty in applying roundovers/offsets to the paths produced, in part due to the tight point spacing and sharp corners that they can have. Thus, this module may evolve to make use of OpenType variable fonts to produce the offset paths required (via variable weight).

Sourceval text : ?fn:int -> ?center:bool -> ?slant:Cairo.slant -> ?weight:Cairo.weight -> ?size:float -> font:string -> string -> OCADml.Poly2.t list
OCaml

Innovation. Community. Security.