Comment 25 for bug 670960

Revision history for this message
IRIE Shinsuke (irie) wrote :

Wow, nice feature! It seems to work fine. Thanks.

However, a lot of fonts are not listed in the dropdown menu, so I modified BlenderGenerator.py:

--- BlenderGenerator.orig.py 2011-01-29 13:51:18.185888999 +0900
+++ BlenderGenerator.py 2011-01-29 13:53:47.655888999 +0900
@@ -78,7 +78,7 @@
   """ Get a list of font files on the computer as FAST as possible. """

   # melt -query
- command = ["locate", "*.ttf"]
+ command = ["locate", "*.tt[fc]"]
   output = ''

   ttf_raw={}
@@ -86,7 +86,7 @@
   try:
    process = subprocess.Popen(args=command,stdout=subprocess.PIPE,
    stdin=subprocess.PIPE,stderr=subprocess.STDOUT)
- output = str(process.stdout.read(20000))
+ output = str(process.stdout.read(200000))

    # wait for process to finish, and then close
    process.stdin.close()