<div dir="ltr"><div>It wouldn't be the worst idea to carry something like this in fontconfig repo itself...<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 19, 2017 at 7:10 PM, Lawrence D'Oliveiro <span dir="ltr"><<a href="mailto:ldo@geek-central.gen.nz" target="_blank">ldo@geek-central.gen.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I discovered recently that the Matplotlib project has put a bunch of<br>
repos on GitHub, one of which is this<br>
<<a href="https://github.com/matplotlib/fcpy" rel="noreferrer" target="_blank">https://github.com/<wbr>matplotlib/fcpy</a>>, their own Python binding for<br>
Fontconfig.<br>
<br>
Trouble is, they do it as an extension module written as C code. This<br>
creates a lot of extra work, and is usually a waste of time. In most<br>
cases (including Fontconfig), a binding can be created in pure Python<br>
that works just as well with significantly less code, in this case a few<br>
hundred lines less <<a href="https://github.com/ldo/python_fontconfig" rel="noreferrer" target="_blank">https://github.com/ldo/<wbr>python_fontconfig</a>>. And I<br>
think I managed to squeeze in one or two extra functions that they<br>
didn’t.<br>
______________________________<wbr>_________________<br>
Fontconfig mailing list<br>
<a href="mailto:Fontconfig@lists.freedesktop.org">Fontconfig@lists.freedesktop.<wbr>org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/fontconfig" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/fontconfig</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">behdad<br><a href="http://behdad.org/" target="_blank">http://behdad.org/</a></div>
</div>