<div dir="auto">Cairo can definitely do that. But it's you're on Mac, definitely look into DrawBot.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 24, 2019, 7:28 AM Warren Vick <<a href="mailto:wvick@europa.uk.com">wvick@europa.uk.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="m_4217989150916204784WordSection1">
<p class="MsoNormal">Hello,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">New to the list and wondering if Cairo might be the right library to help me create some vector-based typographic art.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’d like to create a piece that only use text at various font faces, sizes, style, colours, etc. It would largely be machine generated so I’d like to find a software library that will help me place vector text on a canvas and finally save
as a large PDF. From a Python script, I’d like to be able to specify a bounding box on the page, the text string, text attributes and get the library to fill (by sizing and stretching) the text to fill the box. I’ll repeat this process several thousand times
and when I’m done, simply save the PDF. I’d love to avoid messing around with font metrics if I can and get the library to do the “text stuffing” for me.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Is Cairo and the pycairo bindings the right library for me? Any simple example out there that might help? Many thanks.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span>Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span>Warren<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
-- <br>
cairo mailing list<br>
<a href="mailto:cairo@cairographics.org" target="_blank" rel="noreferrer">cairo@cairographics.org</a><br>
<a href="https://lists.cairographics.org/mailman/listinfo/cairo" rel="noreferrer noreferrer" target="_blank">https://lists.cairographics.org/mailman/listinfo/cairo</a></blockquote></div>