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