<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Sweet!<div><br></div><div>Just what I needed to get started, thanks a bunch.</div><div><br></div><div>Rolf</div><div><br></div><div><br><div style=""><div>On 04 Oct 2014, at 02:39, Roozbeh Pournader <<a href="mailto:roozbeh@google.com">roozbeh@google.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Look at how nototools does it here: <a href="https://code.google.com/p/noto/source/browse/nototools/font_data.py#22">https://code.google.com/p/noto/source/browse/nototools/font_data.py#22</a></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 3, 2014 at 5:11 PM, Rolf Langenhuijzen <span dir="ltr"><<a href="mailto:rolf.langenhuijzen@xs4all.nl" target="_blank">rolf.langenhuijzen@xs4all.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
Sorry to hijack the Harfbuzz list for this, I think this is more fontTools/TTX related, but I didn’t see an (active?) TTX list to post this to…<br>
<br>
Basically I’d like to read the name table in a Python script. I thought this could be done rather easy with fontTools/TTX, but no idea really. Any pointers??<br>
<br>
I came across this <a href="https://github.com/tchollingsworth/ttname" target="_blank">https://github.com/tchollingsworth/ttname</a> which is basically what I need, however I don’t need write stuff and basically only need to read the name table. I started forking it, but then noticed it depends on some older fontTools version, looking at how it wants to use the XML reader (import fontTools.ttLib.xmlImport).<br>
So if this is a good start I would dive into that XML reading/parsing and perhaps update ttname if it’s worth it..<br>
<br>
As I was looking for the Family Name in particular I’m now running a subprocess.Popen to “otfinfo --family" grabbing that information ;)<br>
It’s a bit dirty, but for prototyping it works..<br>
<br>
Kind regards,<br>
Rolf<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
HarfBuzz mailing list<br>
<a href="mailto:HarfBuzz@lists.freedesktop.org">HarfBuzz@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/harfbuzz" target="_blank">http://lists.freedesktop.org/mailman/listinfo/harfbuzz</a><br>
</blockquote></div><br></div>
</blockquote></div><br></div></body></html>