Browse Source

Fix comments for ttf encoder options

James Bowman 1 year ago
parent
commit
6b920a6959
2 changed files with 8 additions and 4 deletions
  1. 4 2
      scripts/gd2asset
  2. 4 2
      scripts/gd3asset

+ 4 - 2
scripts/gd2asset

@@ -35,8 +35,8 @@ class GD2Assets(gd2.prep.AssetBin):
             'jpg' : (self.image, "JPEG image file (options: format)"),
             'bmp' : (self.image, "BMP image file (options: format)"),
             'gif' : (self.image, "GIF image file (options: format)"),
-            'ttf' : (self.ttf, "TrueType font file (options: format, size, botchar, charset, topchar)"),
-            'otf' : (self.ttf, "OpenType font file (options: format, size, botchar, charset, topchar)"),
+            'ttf' : (self.ttf, "TrueType font file (options: format, size, firstchar, charset, topchar)"),
+            'otf' : (self.ttf, "OpenType font file (options: format, size, firstchar, charset, topchar)"),
             'wav' : (self.sample, "Audio sample, mono 16-bit (no options)"),
         }
 
@@ -137,7 +137,9 @@ if __name__ == '__main__':
         print 'ttf,otf'
         print ' size     height in pixels. Default 12'
         print ' format   ' + ' '.join(formats) + '. Default ARGB4'
+        print ' firstchar  first ASCII code encoded. Default 32'
         print ' topchar  maximum ASCII code encoded. Default 127'
+        print ' charset  set of characters to encode (overrides topchar)'
         print
         print 'wav'
         print ' (no options)'

+ 4 - 2
scripts/gd3asset

@@ -35,8 +35,8 @@ class GD2Assets(gd2.prep.AssetBin):
             'jpg' : (self.image, "JPEG image file (options: format)"),
             'bmp' : (self.image, "BMP image file (options: format)"),
             'gif' : (self.image, "GIF image file (options: format)"),
-            'ttf' : (self.ttf, "TrueType font file (options: format, size, botchar, charset, topchar)"),
-            'otf' : (self.ttf, "OpenType font file (options: format, size, botchar, charset, topchar)"),
+            'ttf' : (self.ttf, "TrueType font file (options: format, size, firstchar, charset, topchar)"),
+            'otf' : (self.ttf, "OpenType font file (options: format, size, firstchar, charset, topchar)"),
             'wav' : (self.sample, "Audio sample, mono 16-bit (no options)"),
         }
 
@@ -137,7 +137,9 @@ if __name__ == '__main__':
         print 'ttf,otf'
         print ' size     height in pixels. Default 12'
         print ' format   ' + ' '.join(formats) + '. Default ARGB4'
+        print ' firstchar  first ASCII code encoded. Default 32'
         print ' topchar  maximum ASCII code encoded. Default 127'
+        print ' charset  set of characters to encode (overrides topchar)'
         print
         print 'wav'
         print ' (no options)'