|
4 | 4 |
|
5 | 5 | FONT_SIZE = 12
|
6 | 6 | EMPTY_CHAR = Array.new(FONT_SIZE, 0x0)
|
| 7 | +OUTPUT_FOLDER='../../src/generated' |
| 8 | + |
7 | 9 |
|
8 | 10 | def skip_until(f, regex)
|
9 | 11 | while(not f.eof?)
|
@@ -194,19 +196,19 @@ def read_bdf_chars(f)
|
194 | 196 | gothic_final = gothic.merge(hankaku) \
|
195 | 197 | .merge(korean).merge(chinese).merge(latin) \
|
196 | 198 | .merge(latin_ext_a).merge(extras).merge(extras_fullwidth)
|
197 |
| -code_max = write_all(File.new("../../src/shinonome_gothic.h", "w"), "SHINONOME_GOTHIC", gothic_final) |
| 199 | +code_max = write_all(File.new("#{OUTPUT_FOLDER}/shinonome_gothic.h", "w"), "SHINONOME_GOTHIC", gothic_final) |
198 | 200 | print "done\n"
|
199 | 201 |
|
200 | 202 | print "Generating Mincho..."
|
201 |
| -code_max = [write_all(File.new("../../src/shinonome_mincho.h", "w"), "SHINONOME_MINCHO", mincho), code_max].max |
| 203 | +code_max = [write_all(File.new("#{OUTPUT_FOLDER}/shinonome_mincho.h", "w"), "SHINONOME_MINCHO", mincho), code_max].max |
202 | 204 | print "done\n"
|
203 | 205 |
|
204 | 206 | print "Generating RMG2000..."
|
205 |
| -code_max = [write_all(File.new("../../src/bitmapfont_rmg2000.h", "w"), "BITMAPFONT_RMG2000", rmg2000), code_max].max |
| 207 | +code_max = [write_all(File.new("#{OUTPUT_FOLDER}/bitmapfont_rmg2000.h", "w"), "BITMAPFONT_RMG2000", rmg2000), code_max].max |
206 | 208 | print "done\n"
|
207 | 209 |
|
208 | 210 | print "Generating ttyp0..."
|
209 |
| -code_max = [write_all(File.new("../../src/bitmapfont_ttyp0.h", "w"), "BITMAPFONT_TTYP0", ttyp0), code_max].max |
| 211 | +code_max = [write_all(File.new("#{OUTPUT_FOLDER}/bitmapfont_ttyp0.h", "w"), "BITMAPFONT_TTYP0", ttyp0), code_max].max |
210 | 212 | print "done\n"
|
211 | 213 |
|
212 | 214 | print "done\n"
|
0 commit comments