package acgtk
Abstract Categorial Grammar development toolkit
Install
Dune Dependency
Authors
Maintainers
Sources
acg-2.1.0-20240219.tar.gz
sha512=5d380a947658fb1201895cb4cb449b1f60f54914c563e85181d628a89f045c1dd7b5b2226bb7865dd090f87caa9187e0ea6c7a4ee3dc3dda340d404c4e76c7c2
doc/src/acgtk.svg_rendering/show_text_dejavu.ml.html
Source file show_text_dejavu.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
open Cairo open Diagram let family = "DejaVu Sans" let size = 15. let font_extents = get_font_extents (font family) size let textC ~face ~size contents = text_ ~face ~size contents |> translateY (-.font_extents.descent) |> translateY ((font_extents.ascent +. font_extents.descent) /. 2.) let n = textC ~face:(font family) ~size let b = textC ~face:(font family ~weight:Bold) ~size let i = textC ~face:(font family ~slant:Italic) ~size
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>