[+fonttools]
On 13-10-31 09:11 PM, Jeremy Mickel wrote:
> I've noticed a strange phenomenon lately -- If I input an OTF using TTX, it
> spits out a TTX document. But then if I input that TTX document to regenerate
> the font, it exports as a TTF.
Looks to me like this have been broken forever... The following patch fixes it:
diff --git a/Lib/fontTools/ttx.py b/Lib/fontTools/ttx.py
index 6cef64a..56f211a 100644
--- a/Lib/fontTools/ttx.py
+++ b/Lib/fontTools/ttx.py
@@ -267,7 +267,7 @@ def guessFileType(fileName):
elif head in ("\0\1\0\0", "true"):
return "TTF"
elif head.lower() == "<?xm":
- if opentypeheaderRE.match(header):
+ if opentypeheaderRE.search(header):
return "OTX"
else:
return "TTX"
I'll push a fix in my tree.
> The TTF isn't installable, but if I change the file extension to OTF, it's a
> usable font.
>
> It's been happening for a few weeks now in OSX 10.8. I recently upgraded to
> OSX 10.9 and it still happens, even after reinstalling FontTools.
>
> Thanks for any ideas on what might be wrong!
>
> Jeremy
>
> --
> --
> You received this message because you are subscribed to the Google Groups
> "RoboFab" group.
> To post to this group, send email to
rob...@googlegroups.com
> To unsubscribe from this group, send email to
robofab-u...@googlegroups.com
> For more options, visit this group at
http://groups.google.com/group/robofab?hl=en
>
> Messages from newly joined members are subject to moderation.
> Download RoboFab and documentation at
http://robofab.com
> ---
> You received this message because you are subscribed to the Google Groups
> "RoboFab" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
robofab+u...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
--
behdad
http://behdad.org/