[reportlab-users] PDFMetrics.RegisterFont should walk into subdirectories

Hosam Aly haly at centrivision.com
Wed Nov 25 10:46:48 EST 2009


On Tue, November 24, 2009 6:23 pm, Robin Becker wrote:

> ........

>

> well the patch below will make all of the search paths recur. It's done at

> startup so it's not as dynamic as it could be. A similar approach could be

> applied just to the ttfonts filename search; perhaps we should consider

> recurring only if the top level search is about to fail; that would entail

> a

> breadth first recursion in the TTFont creation

>

> --

> Robin Becker

> _______________________________________________


Thanks for the help Robin, but I wonder why you didn't use the built-in
`os.walk` method? Wouldn't that be easier?


--
Hosam Aly



More information about the reportlab-users mailing list