package OCADml

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

Install

Dune Dependency

Authors

Maintainers

Sources

OCADml-0.6.0.tbz
sha256=2d93cd5f2a41c6c0a183c02ac93ed8c4113fbc42d5557c769adbdc30c6421049
sha512=a9450c05bb1b798a70655f76ae04e8a9c46cde0f255687959f1639d9691cd3822e52065014d8cc5d4bd6229057a8036c28d917afdadb283a397fc823cac1fd30

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.