Skip to content

Commit cd956b8

Browse files
committed
build: Added creation of sharp_cult-15 font
1 parent 1ba26b4 commit cd956b8

3 files changed

Lines changed: 128 additions & 2 deletions

File tree

Makefile.am

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,14 @@ data/pointr0-0.dat: $(top_srcdir)/pointers-32/filelist-pointr0-0.txt $(top_srcdi
5454

5555
include $(srcdir)/sprites-fontc0-0.am
5656
include $(srcdir)/sprites-fontc0-1.am
57+
include $(srcdir)/sprites-fontc0-2.am
5758
include $(srcdir)/sprites-fontc0-3.am
5859
include $(srcdir)/sprites-fontc0-7.am
5960
include $(srcdir)/sprites-fontc1-0.am
6061
include $(srcdir)/sprites-fontc1-2.am
6162
include $(srcdir)/sprites-fontc2-0.am
6263
include $(srcdir)/sprites-fontc2-1.am
64+
include $(srcdir)/sprites-fontc2-2.am
6365
include $(srcdir)/sprites-fontc2-3.am
6466
include $(srcdir)/sprites-fontc2-7.am
6567
include $(srcdir)/sprites-fontc6-0.am
@@ -69,9 +71,9 @@ include $(srcdir)/sprites-fontc7-1.am
6971
include $(srcdir)/sprites-fontc11-0.am
7072
include $(srcdir)/sprites-fontc12-0.am
7173

72-
fontc0_DATA = $(fontc0_0_files) $(fontc0_1_files) $(fontc0_3_files) $(fontc0_7_files) \
74+
fontc0_DATA = $(fontc0_0_files) $(fontc0_1_files) $(fontc0_2_files) $(fontc0_3_files) $(fontc0_7_files) \
7375
$(fontc1_0_files) $(fontc1_2_files) \
74-
$(fontc2_0_files) $(fontc2_1_files) $(fontc2_3_files) $(fontc2_7_files) \
76+
$(fontc2_0_files) $(fontc2_1_files) $(fontc2_2_files) $(fontc2_3_files) $(fontc2_7_files) \
7577
$(fontc6_0_files) $(fontc6_1_files) \
7678
$(fontc7_0_files) $(fontc7_1_files) \
7779
$(fontc11_0_files) \

sprites-fontc0-2.am

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# *****************************************************************************
2+
# Graphics assets generation for SyndWarsFX.
3+
# *****************************************************************************
4+
# @file sprites-fontc0-2.am
5+
# Automake rules neccessary to build `fontc0-2` menu font sprites.
6+
# Font c0 - font_sharp_cult ltblue.
7+
# Detail 3 - 15 px height.
8+
# @author Tomasz Lis
9+
# @par Copying and copyrights:
10+
# This program is free software; you can redistribute it and/or modify
11+
# it under the terms of the GNU General Public License as published by
12+
# the Free Software Foundation; either version 2 of the License, or
13+
# (at your option) any later version.
14+
# *****************************************************************************
15+
16+
fontc0_2_files = data/fontc0-2.dat data/fontc0-2.tab
17+
18+
# List of font letters which can be colorized
19+
fontc0_2_chars = \
20+
0021 0022 0023 0024 0025 0026 0027 0028 0029 002a 002b 002c 002d 002e 002f \
21+
0030 0031 0032 0033 0034 0035 0036 0037 0038 0039 003a 003b 003c 003d 003e 003f \
22+
0040 0041 0042 0043 0044 0045 0046 0047 0048 0049 004a 004b 004c 004d 004e 004f \
23+
0050 0051 0052 0053 0054 0055 0056 0057 0058 0059 005a 005b 005c 005d 005e 005f \
24+
0060 0061 0062 0063 0064 0065 0066 0067 0068 0069 006a 006b 006c 006d 006e 006f \
25+
0070 0071 0072 0073 0074 0075 0076 0077 0078 0079 007a 007e \
26+
00a1 00aa 00b0 00bf \
27+
00c0 00c1 00c2 00c3 00c4 00c5 00c7 00c8 00c9 00ca 00cb 00cc 00cd 00ce 00cf \
28+
00d1 00d2 00d3 00d4 00d5 00d6 00d9 00da 00db 00dc 00dd 00df \
29+
00e0 00e1 00e2 00e3 00e4 00e5 00e7 00e8 00e9 00ea 00eb 00ec 00ed 00ee 00ef \
30+
00f1 00f2 00f3 00f4 00f5 00f6 00f9 00fa 00fb 00fc 00fd 00ff \
31+
0104 0105 0106 0107 0118 0119 0141 0142 0143 0144 015a 015b 0179 017a 017b 017c \
32+
2018 2019
33+
# List of non-letters or other sprites to pass without colorization
34+
fontc0_2_charnames_nomod = \
35+
empty char_u0020
36+
fontc0_2_sprites_gen = \
37+
$(foreach num,$(fontc0_2_chars),font_sharp_cult-15-ltblue/char_u$(num).png)
38+
fontc0_2_sprites_cp = \
39+
$(foreach name,$(fontc0_2_charnames_nomod),$(top_srcdir)/font_sharp_cult-15-white/$(name).png)
40+
41+
data/fontc0-2.tab: data/fontc0-2.dat
42+
43+
data/fontc0-2.dat: font_sharp_cult-15-ltblue/filelist-fontc0-2.txt $(top_srcdir)/data/feproj-std.pal $(fontc0_2_sprites_gen)
44+
45+
font_sharp_cult-15-ltblue/filelist-fontc0-2.txt: $(top_srcdir)/font_sharp_cult-15-white/filelist-fontc0-2.txt
46+
$(MKDIR_P) "$(@D)"
47+
cp -p -t "$(@D)" $(fontc0_2_sprites_cp)
48+
cp -p "$<" "$@"
49+
50+
# Use ImageMagick to generate light blue sprites from the white ones
51+
font_sharp_cult-15-ltblue/%.png: $(top_srcdir)/font_sharp_cult-15-white/%.png
52+
$(MKDIR_P) "$(@D)"
53+
$(MAGICK_CONVERT) "$<" -colorspace RGB \
54+
-channel R -evaluate multiply 0.66 \
55+
-channel G -evaluate multiply 0.53 \
56+
-channel B -evaluate multiply 0.99 \
57+
+channel -colorspace RGB "$@"
58+
59+
# Extras placed here because we do not need to generate a whole front for them, so does not need its own script
60+
# Use ImageMagick to generate light green sprites from the white ones
61+
font_sharp_cult-15-ltgren/%.png: $(top_srcdir)/font_sharp_cult-15-white/%.png
62+
$(MKDIR_P) "$(@D)"
63+
$(MAGICK_CONVERT) "$<" -colorspace RGB \
64+
-channel R -evaluate multiply 0.88 \
65+
-channel G -evaluate multiply 0.92 \
66+
-channel B -evaluate multiply 0.86 \
67+
+channel -colorspace RGB "$@"

sprites-fontc2-2.am

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# *****************************************************************************
2+
# Graphics assets generation for SyndWarsFX.
3+
# *****************************************************************************
4+
# @file sprites-fontc2-2.am
5+
# Automake rules neccessary to build `fontc2-2` menu font sprites.
6+
# Font c2 - font_sharp_cult ltteal.
7+
# Detail 3 - 15 px height.
8+
# @author Tomasz Lis
9+
# @par Copying and copyrights:
10+
# This program is free software; you can redistribute it and/or modify
11+
# it under the terms of the GNU General Public License as published by
12+
# the Free Software Foundation; either version 2 of the License, or
13+
# (at your option) any later version.
14+
# *****************************************************************************
15+
16+
fontc2_2_files = data/fontc2-2.dat data/fontc2-2.tab
17+
18+
# List of font letters which can be colorized
19+
fontc2_2_chars = \
20+
0021 0022 0023 0024 0025 0026 0027 0028 0029 002a 002b 002c 002d 002e 002f \
21+
0030 0031 0032 0033 0034 0035 0036 0037 0038 0039 003a 003b 003c 003d 003e 003f \
22+
0040 0041 0042 0043 0044 0045 0046 0047 0048 0049 004a 004b 004c 004d 004e 004f \
23+
0050 0051 0052 0053 0054 0055 0056 0057 0058 0059 005a 005b 005c 005d 005e 005f \
24+
0060 0061 0062 0063 0064 0065 0066 0067 0068 0069 006a 006b 006c 006d 006e 006f \
25+
0070 0071 0072 0073 0074 0075 0076 0077 0078 0079 007a 007e \
26+
00a1 00aa 00b0 00bf \
27+
00c0 00c1 00c2 00c3 00c4 00c5 00c7 00c8 00c9 00ca 00cb 00cc 00cd 00ce 00cf \
28+
00d1 00d2 00d3 00d4 00d5 00d6 00d9 00da 00db 00dc 00dd 00df \
29+
00e0 00e1 00e2 00e3 00e4 00e5 00e7 00e8 00e9 00ea 00eb 00ec 00ed 00ee 00ef \
30+
00f1 00f2 00f3 00f4 00f5 00f6 00f9 00fa 00fb 00fc 00fd 00ff \
31+
0104 0105 0106 0107 0118 0119 0141 0142 0143 0144 015a 015b 0179 017a 017b 017c \
32+
2018 2019
33+
# List of non-letters or other sprites to pass without colorization
34+
fontc2_2_charnames_nomod = \
35+
empty char_u0020
36+
fontc2_2_sprites_gen = \
37+
$(foreach num,$(fontc2_2_chars),font_sharp_cult-15-ltteal/char_u$(num).png)
38+
fontc2_2_sprites_cp = \
39+
$(foreach name,$(fontc2_2_charnames_nomod),$(top_srcdir)/font_sharp_cult-15-white/$(name).png)
40+
41+
data/fontc2-2.tab: data/fontc2-2.dat
42+
43+
data/fontc2-2.dat: font_sharp_cult-15-ltteal/filelist-fontc2-2.txt $(top_srcdir)/data/feproj-std.pal $(fontc2_2_sprites_gen)
44+
45+
font_sharp_cult-15-ltteal/filelist-fontc2-2.txt: $(top_srcdir)/font_sharp_cult-15-white/filelist-fontc0-2.txt
46+
$(MKDIR_P) "$(@D)"
47+
cp -p -t "$(@D)" $(fontc2_2_sprites_cp)
48+
cp -p "$<" "$@"
49+
50+
# Use ImageMagick to generate light teal sprites from the white ones
51+
font_sharp_cult-15-ltteal/%.png: $(top_srcdir)/font_sharp_cult-15-white/%.png
52+
$(MKDIR_P) "$(@D)"
53+
$(MAGICK_CONVERT) "$<" -colorspace RGB \
54+
-channel R -evaluate multiply 0.00 \
55+
-channel G -evaluate multiply 0.99 \
56+
-channel B -evaluate multiply 0.99 \
57+
+channel -colorspace RGB "$@"

0 commit comments

Comments
 (0)