Sweet!

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

Rolf


On 04 Oct 2014, at 02:39, Roozbeh Pournader <[email protected]> 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 
> <[email protected]> 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
> [email protected]
> http://lists.freedesktop.org/mailman/listinfo/harfbuzz
> 

_______________________________________________
HarfBuzz mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/harfbuzz

Reply via email to