upgrade to Tuxpaint 0.9.16-rc4

This commit is contained in:
Song Huang 2006-10-15 13:43:32 +00:00
parent 07526a4ed5
commit 020b754a11

View file

@ -1,11 +1,15 @@
#!/usr/bin/env fontforge #!/usr/bin/env fontforge
# >> The script first draft by Edward Lee<Edward.bbs@bbs.sayya.org>. << # <% The script first draft by Edward Lee<Edward.bbs@bbs.sayya.org>. %>
# Copyright: Song Huang <song@song.idv.tw> # Copyright: Song Huang <song@song.tw>
# License: GUN GPL # License: GUN GPL
# 2004/10/26 # create: 2004/10/26
# modify: 2006/10/15
copyright="Song Huang <song@song.tw>"
ver="0.2"
if ($argc < 4) if ($argc < 4)
Print("usage: ", $0, " orig.ttf generate.ttf char_num [char_num ...]") Print("usage: ", $0, " orig.ttf generate.ttf char_nu [char_num ...]")
Quit(1) Quit(1)
endif endif
@ -26,7 +30,9 @@ while ( i >= 0 )
SelectMore(a[i]) SelectMore(a[i])
i-- i--
endloop endloop
Copy()
SelectInvert()
Clear()
fontName=GetTTFName(0x404, 6) + "[Subset for TuxPaint] " fontName=GetTTFName(0x404, 6) + "[Subset for TuxPaint] "
fontCopyRight=GetTTFName(0x404, 0) fontCopyRight=GetTTFName(0x404, 0)
@ -34,11 +40,6 @@ fontVersion=GetTTFName(0x404, 5) + "[Subset for TuxPaint] "
fontMaker="TuxPaint's Font Subset Maker" fontMaker="TuxPaint's Font Subset Maker"
fontSample="TuxPaint Font Subset." fontSample="TuxPaint Font Subset."
Close()
New()
Reencode("unicode")
ScaleToEm(1024)
# nameid=1 Font Family Name # nameid=1 Font Family Name
SetTTFName(0x404,1,fontName) SetTTFName(0x404,1,fontName)
# nameid=4 Full Font Name # nameid=4 Full Font Name
@ -52,12 +53,10 @@ SetTTFName(0x404,8,fontMaker)
# nameid=19 Sample text # nameid=19 Sample text
SetTTFName(0x404,4,fontName) SetTTFName(0x404,4,fontName)
i=$argc - 4 # Set font name
while ( i >= 0 ) SetFontNames("SubsetForTuxPaint","SubsetForTuxPaint","SubsetForTuxPaint","Book",copyright,ver)
SelectMore(a[i])
i-- AutoCounter()
endloop
Paste()
Print("Generating fonts...") Print("Generating fonts...")
Generate($2) Generate($2)