[HarfBuzz] Need to read family name (nameID/fontTools/TTX related)

Rolf Langenhuijzen rolf.langenhuijzen at xs4all.nl
Sat Oct 4 02:44:19 PDT 2014


Sweet!

Just what I needed to get started, thanks a bunch.

Rolf


On 04 Oct 2014, at 02:39, Roozbeh Pournader <roozbeh at google.com> wrote:

> Look at how nototools does it here: https://code.google.com/p/noto/source/browse/nototools/font_data.py#22
> 
> On Fri, Oct 3, 2014 at 5:11 PM, Rolf Langenhuijzen <rolf.langenhuijzen at xs4all.nl> wrote:
> Hello,
> 
> 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…
> 
> 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??
> 
> I came across this https://github.com/tchollingsworth/ttname 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).
> So if this is a good start I would dive into that XML reading/parsing and perhaps update ttname if it’s worth it..
> 
> As I was looking for the Family Name in particular I’m now running a subprocess.Popen to “otfinfo --family" grabbing that information ;)
> It’s a bit dirty, but for prototyping it works..
> 
> Kind regards,
> Rolf
> 
> 
> 
> 
> _______________________________________________
> HarfBuzz mailing list
> HarfBuzz at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/harfbuzz
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/harfbuzz/attachments/20141004/776a6e13/attachment.html>


More information about the HarfBuzz mailing list