| Newsgroups |
gmane.comp.lang.ocaml.beginners |
| Message-ID |
<[email protected]> |
Oh, dive in and add it if it isn't there. If you already have the source showing you a binding, and you need something in c, just copy paste and then edit what you need in :)
On Tuesday, June 30, 2015 10:32 AM, "Hendrik Boom [email protected] [ocaml_beginners]" <[email protected]> wrote:
On Mon, Jun 29, 2015 at 11:34:38PM -0400, Hendrik Boom [email protected] [ocaml_beginners] wrote:
> I've used cairo before.
> I'm having trouble figuring out how to ues pango.
>
> I've found a whole lot of relatednfile on my system:
>
> /usr/lib/ocaml/cairo/libmlpangocairo.a
> /usr/lib/ocaml/cairo/pango_cairo.a
> /usr/lib/ocaml/cairo/pango_cairo.cma
> /usr/lib/ocaml/cairo/pango_cairo.cmi
> /usr/lib/ocaml/cairo/pango_cairo.cmx
> /usr/lib/ocaml/cairo/pango_cairo.cmxa
> /usr/lib/ocaml/cairo/pango_cairo.mli
>
> and the source code in
>
> /usr/lib/ocaml/lablgtk2/pango.ml
>
> appears to define a lot of useful names.
> I have lots of ways to measure fonts and so forth.
> But I can't figure out how to actually draw text on a canvas.
Got a clue, anyway. Pango has the function
pango_cairo_show_glyph_string ()
Which might or might not correspond to the ocaml function
hendrik@notlookedfor:/usr/lib/ocaml/cairo$ grep glyph * | grep show
cairo.mli:external show_glyphs : t -> glyph array -> unit = "ml_cairo_show_glyphs"
I haven't yet found ml_cairo_show_glyphs. but it probably will
turn out to be pango_cairo_show_glyph_string.
-- hendrik
>
> Have I missed something online or on my Debian jessie machine?
> Google foind me a decde-old message decryinng the lack of pango support.
> And the code I foind suggests that matters are far, far better now.
>
> Where should I be looking for examplees or documentation?
>
> -- hendrik
>
>
>
> ------------------------------------
> Posted by: Hendrik Boom <[email protected]>
> ------------------------------------
>
> Archives up to December 31, 2011 are also downloadable at http://www.connettivo.net/cntprojects/ocaml_beginners
> The archives of the very official ocaml list (the seniors' one) can be found at http://caml.inria.fr
> Attachments are banned and you're asked to be polite, avoid flames etc.
> ------------------------------------
>
> Yahoo Groups Links
>
>
>
#yiv5079721741 #yiv5079721741 -- #yiv5079721741ygrp-mkp {border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}#yiv5079721741 #yiv5079721741ygrp-mkp hr {border:1px solid #d8d8d8;}#yiv5079721741 #yiv5079721741ygrp-mkp #yiv5079721741hd {color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}#yiv5079721741 #yiv5079721741ygrp-mkp #yiv5079721741ads {margin-bottom:10px;}#yiv5079721741 #yiv5079721741ygrp-mkp .yiv5079721741ad {padding:0 0;}#yiv5079721741 #yiv5079721741ygrp-mkp .yiv5079721741ad p {margin:0;}#yiv5079721741 #yiv5079721741ygrp-mkp .yiv5079721741ad a {color:#0000ff;text-decoration:none;}#yiv5079721741 #yiv5079721741ygrp-sponsor #yiv5079721741ygrp-lc {font-family:Arial;}#yiv5079721741 #yiv5079721741ygrp-sponsor #yiv5079721741ygrp-lc #yiv5079721741hd {margin:10px 0px;font-weight:700;font-size:78%;line-height:122%;}#yiv5079721741 #yiv5079721741ygrp-sponsor #yiv5079721741ygrp-lc .yiv5079721741ad {margin-bottom:10px;padding:0 0;}#yiv5079721741 #yiv5079721741actions {font-family:Verdana;font-size:11px;padding:10px 0;}#yiv5079721741 #yiv5079721741activity {background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}#yiv5079721741 #yiv5079721741activity span {font-weight:700;}#yiv5079721741 #yiv5079721741activity span:first-child {text-transform:uppercase;}#yiv5079721741 #yiv5079721741activity span a {color:#5085b6;text-decoration:none;}#yiv5079721741 #yiv5079721741activity span span {color:#ff7900;}#yiv5079721741 #yiv5079721741activity span .yiv5079721741underline {text-decoration:underline;}#yiv5079721741 .yiv5079721741attach {clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 0;width:400px;}#yiv5079721741 .yiv5079721741attach div a {text-decoration:none;}#yiv5079721741 .yiv5079721741attach img {border:none;padding-right:5px;}#yiv5079721741 .yiv5079721741attach label {display:block;margin-bottom:5px;}#yiv5079721741 .yiv5079721741attach label a {text-decoration:none;}#yiv5079721741 blockquote {margin:0 0 0 4px;}#yiv5079721741 .yiv5079721741bold {font-family:Arial;font-size:13px;font-weight:700;}#yiv5079721741 .yiv5079721741bold a {text-decoration:none;}#yiv5079721741 dd.yiv5079721741last p a {font-family:Verdana;font-weight:700;}#yiv5079721741 dd.yiv5079721741last p span {margin-right:10px;font-family:Verdana;font-weight:700;}#yiv5079721741 dd.yiv5079721741last p span.yiv5079721741yshortcuts {margin-right:0;}#yiv5079721741 div.yiv5079721741attach-table div div a {text-decoration:none;}#yiv5079721741 div.yiv5079721741attach-table {width:400px;}#yiv5079721741 div.yiv5079721741file-title a, #yiv5079721741 div.yiv5079721741file-title a:active, #yiv5079721741 div.yiv5079721741file-title a:hover, #yiv5079721741 div.yiv5079721741file-title a:visited {text-decoration:none;}#yiv5079721741 div.yiv5079721741photo-title a, #yiv5079721741 div.yiv5079721741photo-title a:active, #yiv5079721741 div.yiv5079721741photo-title a:hover, #yiv5079721741 div.yiv5079721741photo-title a:visited {text-decoration:none;}#yiv5079721741 div#yiv5079721741ygrp-mlmsg #yiv5079721741ygrp-msg p a span.yiv5079721741yshortcuts {font-family:Verdana;font-size:10px;font-weight:normal;}#yiv5079721741 .yiv5079721741green {color:#628c2a;}#yiv5079721741 .yiv5079721741MsoNormal {margin:0 0 0 0;}#yiv5079721741 o {font-size:0;}#yiv5079721741 #yiv5079721741photos div {float:left;width:72px;}#yiv5079721741 #yiv5079721741photos div div {border:1px solid #666666;height:62px;overflow:hidden;width:62px;}#yiv5079721741 #yiv5079721741photos div label {color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}#yiv5079721741 #yiv5079721741reco-category {font-size:77%;}#yiv5079721741 #yiv5079721741reco-desc {font-size:77%;}#yiv5079721741 .yiv5079721741replbq {margin:4px;}#yiv5079721741 #yiv5079721741ygrp-actbar div a:first-child {margin-right:2px;padding-right:5px;}#yiv5079721741 #yiv5079721741ygrp-mlmsg {font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}#yiv5079721741 #yiv5079721741ygrp-mlmsg table {font-size:inherit;font:100%;}#yiv5079721741 #yiv5079721741ygrp-mlmsg select, #yiv5079721741 input, #yiv5079721741 textarea {font:99% Arial, Helvetica, clean, sans-serif;}#yiv5079721741 #yiv5079721741ygrp-mlmsg pre, #yiv5079721741 code {font:115% monospace;}#yiv5079721741 #yiv5079721741ygrp-mlmsg * {line-height:1.22em;}#yiv5079721741 #yiv5079721741ygrp-mlmsg #yiv5079721741logo {padding-bottom:10px;}#yiv5079721741 #yiv5079721741ygrp-msg p a {font-family:Verdana;}#yiv5079721741 #yiv5079721741ygrp-msg p#yiv5079721741attach-count span {color:#1E66AE;font-weight:700;}#yiv5079721741 #yiv5079721741ygrp-reco #yiv5079721741reco-head {color:#ff7900;font-weight:700;}#yiv5079721741 #yiv5079721741ygrp-reco {margin-bottom:20px;padding:0px;}#yiv5079721741 #yiv5079721741ygrp-sponsor #yiv5079721741ov li a {font-size:130%;text-decoration:none;}#yiv5079721741 #yiv5079721741ygrp-sponsor #yiv5079721741ov li {font-size:77%;list-style-type:square;padding:6px 0;}#yiv5079721741 #yiv5079721741ygrp-sponsor #yiv5079721741ov ul {margin:0;padding:0 0 0 8px;}#yiv5079721741 #yiv5079721741ygrp-text {font-family:Georgia;}#yiv5079721741 #yiv5079721741ygrp-text p {margin:0 0 1em 0;}#yiv5079721741 #yiv5079721741ygrp-text tt {font-size:120%;}#yiv5079721741 #yiv5079721741ygrp-vital ul li:last-child {border-right:none !important;}#yiv5079721741