package fontforge-of-ocaml
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=af7c59bea65ac5844c04ea7ae5347c4ab2016a217d54a3c1d806020dffad064f
sha512=2e48257b58151c453cb6fb2fd56899ccde52e94fd74ed7b031381a45a8756668096e3d2bf2e716f57067c2c5f8896ae5cecb498d7124d0f83c212b2732c6cd15
doc/fontforge-of-ocaml/FontForge/PsMat/index.html
Module FontForge.PsMat
PsMat
which provides quick access to some useful transformations expressed as PostScript matrices. API: complete (compared to the Python API) except that the type PsMat.t
become abstract.
Point
val identity : unit -> t
Returns an identity matrix
Returns an identity matrix
Returns a matrix which is the composition of the two input transformations
Returns a matrix which is the composition of the two input transformations
Returns a matrix which is the inverse of the input transformation. (Note: There will not always be an inverse)
val rotate : float -> t
Returns a matrix which is the inverse of the input transformation. (Note: There will not always be an inverse)
Returns a matrix which will rotate by theta. Theta is expressed in radians
val scale : ?y:float -> float -> t
Returns a matrix which will rotate by theta. Theta is expressed in radians
Returns a matrix which will scale by x
in the horizontal direction and y in the vertical. If y
is omitted, it will scale by the same amount x
in both directions
val skew : float -> t
Returns a matrix which will scale by x
in the horizontal direction and y in the vertical. If y
is omitted, it will scale by the same amount x
in both directions
Returns a matrix which will skew by theta (to produce a oblique font). Theta is expressed in radians
val translate : x:float -> y:float -> t
Returns a matrix which will skew by theta (to produce a oblique font). Theta is expressed in radians
Returns a matrix which will translate by x in the horizontal direction and y in the vertical