Skip to content

Commit 4077070

Browse files
authored
Merge pull request EasyRPG#3240 from rohkea/fix/ttyp0-changes
ttyp0 changes (remove Thai and Hebrew), generator fix
2 parents a650f92 + 4824021 commit 4077070

File tree

5 files changed

+7715
-7768
lines changed

5 files changed

+7715
-7768
lines changed

resources/shinonome/generate_cxx_font.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
FONT_SIZE = 12
66
EMPTY_CHAR = Array.new(FONT_SIZE, 0x0)
7+
OUTPUT_FOLDER='../../src/generated'
8+
79

810
def skip_until(f, regex)
911
while(not f.eof?)
@@ -194,19 +196,19 @@ def read_bdf_chars(f)
194196
gothic_final = gothic.merge(hankaku) \
195197
.merge(korean).merge(chinese).merge(latin) \
196198
.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)
198200
print "done\n"
199201

200202
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
202204
print "done\n"
203205

204206
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
206208
print "done\n"
207209

208210
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
210212
print "done\n"
211213

212214
print "done\n"

0 commit comments

Comments
 (0)