Prep all the fonts that are available (#1)

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
sigonasr2, Sig, Sigo 3 years ago
parent 2800528116
commit 8eb9edb71a
  1. 21
      readers/fonts/Font.java
  2. 30
      readers/fonts/ddr_diff
  3. 30
      readers/fonts/ddr_excombo
  4. 30
      readers/fonts/ddr_noteCount
  5. 30
      readers/fonts/ddr_score
  6. 0
      readers/fonts/sdvx_largeScore
  7. 14
      sigPlace.java
  8. BIN
      test.png

@ -12,6 +12,24 @@ import java.awt.Color;
public class Font {
Glyph[] data = new Glyph[10];
final static int TRANSPARENT = new Color(0,0,0,0).getRGB();
final static Font FONT_DDR_DIFF = LoadFont("ddr_diff");
final static Font FONT_DDR_EXCOMBO = LoadFont("ddr_excombo");
final static Font FONT_DDR_NOTECOUNT = LoadFont("ddr_noteCount");
final static Font FONT_DDR_SCORE = LoadFont("ddr_score");
final static Font FONT_ITG_DIFF = LoadFont("itg_diff");
final static Font FONT_ITG_EX = LoadFont("itg_ex");
final static Font FONT_ITG_NOTECOUNT = LoadFont("itg_noteCount");
final static Font FONT_ITG_PCT = LoadFont("itg_pct");
final static Font FONT_LOVELIVE_NOTECOUNT = LoadFont("lovelive_noteCount");
final static Font FONT_LOVELIVE_PCT = LoadFont("lovelive_pct");
final static Font FONT_LOVELIVE_SCORE = LoadFont("lovelive_score");
final static Font FONT_POPN_COMBO = LoadFont("popn_combo");
final static Font FONT_POPN_NOTECOUNT = LoadFont("popn_noteCount");
final static Font FONT_POPN_SCORE = LoadFont("popn_score");
final static Font FONT_SDVX_EXSCORE = LoadFont("sdvx_EXScore");
final static Font FONT_SDVX_LITTLESCORE = LoadFont("sdvx_littleScore");
final static Font FONT_SDVX_NOTECOUNT = LoadFont("sdvx_noteCount");
final static Font FONT_SDVX_BIGSCORE = LoadFont("sdvx_largeScore");
public static Font LoadFont(String fontName) {
Path f = Paths.get("readers","fonts",fontName);
@ -28,6 +46,9 @@ public class Font {
for (int j=0;j<dataArr.length();j++) {
g.data[j]=(dataArr.charAt(j))=='1'?true:false;
}
if (g.width==0||g.height==0) {
System.out.println(" WARNING! Font "+fontName+" does not have glyph data for "+(i/3)+"!");
}
font.data[i/3]=g;
}
} catch (IOException e) {

@ -0,0 +1,30 @@
23
40
00000001111111110000000000001111111111111000000001111111111111111000000011111111111111111000001111111111111111111000111111111111111111111011111111111111111111111111111111111111111111111111111111000111111111111111111110001111111111111111111100011111111111111111111000111111111111111111110001111111111111111111100011111111111111111111000111111111111111111110001111111111111111111100011111111111111111111000111111111111111111110001111111111111111111100011111111111111111111000111111111111111111110001111111111111111111100011111111111111111111000111111111111111111110001111111111111111111100011111111111111111111000111111111111111111110001111111111111111111100011111111111111111111000111111111111111111110001111111111111111111100011111111111111111111000111111111111111111110111111111111111111111111111111111110111111111111111111111000111111111111111111100000111111111111111110000001111111111111111000000000111111111111100000
17
40
00000000000011110000000000011111110000000001111111100000000111111111000000011111111110000111111111111100111111111111111011111111111111111111111111111111111111111111111111111111111111111110111111111111111100000111111111111000000011111111110000000111111111100000001111111111000000011111111110000000111111111100000001111111111000000011111111110000000111111111100000001111111111000000011111111110000000111111111100000001111111111000000011111111110000000111111111100000001111111111000000011111111110000000111111111100000001111111111000000011111111110000000111111111100000001111111111000000011111111110000000111111111100000001111111111000000011111111110000000111111111100000001111111111
0
0
0
0
0
0
0
0
0
0
0
0
0
0
23
40
00000001111111110000000000001111111111111000000001111111111111111000000111111111111111111000011111111111111111111001111111111111111111111011111111111111111111111111111111111111111111111111111111000111111111111111111110001111111111111111111100011111111111111111111000111111111111111111110001111111111111111111100011111111111111111111000111111111111111111110001111111111111111111100011111111111111111111000111111111111111111110001111111111111111111111111111111111111111111111111111111111111111111111111111111011111111111111111111110011111111111111111111100011111111101111111111000011111110011111111110000000000000111111111100000000000001111111111000000000000011111111110111111110000111111111111111111110001111111111111111111100011111111111111111111000111111111111111111111011111111111111111111111111111111110111111111111111111111000111111111111111111100001111111111111111110000001111111111111111000000000111111111111100000

@ -0,0 +1,30 @@
19
26
00000111111111000000000111111111110000001111111111111110000111111111111111000111110000000111110111110000000001111111110000000000111111111000000000001111111100000000000111111110000000000011111111000000000001111111100000000000111111110000000000011111111000000000001111111100000000000111111110000000000011111111000000000001111111100000000000111111110000000000011111111000000000001111111100000000001111111111000000000111110111110000000111110001111111111111110000111111111111111000001111111111110000
7
25
1111111111111100011110000111000011100001110000111000011100001110000111000011100001110000111000011100001110000111000011100001110000111000011100001110000111000011100001110000111
17
25
00000111111110000000111111111110000011111000111110001111000000011110011100000000011110111000000000011101100000000000111111000000000000110000000000000011100000000000000111000000000000001110000000000000111000000000000011110000000000001111000000000000111100000000000011110000000000001111000000000000111100000000000111110000000000011111000000000001111100000000000111100000000000011111000000000001111100000000000011111111111111111
18
26
000001111111100000000011111111110000000111111111111000001111111111111000001111000001111100001111000000111100001111000000111100001110000000111100000000000001111100000000000011111100000000011111111000000000111111111000000000111111111000000000001111111100000000000001111110000000000000011110000000000000011111000000000000001111111100000000001111111100000000001111111100000000001111111110000000011110111111000000111110011111111111111110001111111111111100000111111111111000
18
25
000000000000111100000000000000111100000000000001111100000000000011111100000000000011111100000000000111011100000000001111011100000000001110011100000000011100011100000000111100011100000000111000011100000001110000011100000011110000011100000011100000011100000111000000011100001111000000011100001110000000011100011100000000011100011100000000011100111111111111111111111111111111111111011111111111111111000000000000011110000000000000011100000000000000011100
18
25
000011111111111100000111111111111000000111100000000000000111000000000000000110000000000000001110000000000000001110000000000000001110000000000000001111000000000000001111111111100000001111111111110000011111100001111100011110000000011100001000000000001110000000000000001110000000000000001111000000000000000111000000000000000111110000000000000111111000000000001111111000000000001110011100000000011110011110000000111100001111100011111000000011111111110000
19
26
00000000011110000000000000001111000000000000001111100000000000001111100000000000000111100000000000000111110000000000000111110000000000000111111000000000000011111000000000000011111111111000000001111111111110000001111111111111110000111111111111111000111110000000111110111110000000001111111110000000000011111111000000000001111111100000000000111111110000000000011111111000000000001111111100000000001111111111000000000111110111110000000111110001111111111111110000111111111111111000000111111111110000
17
26
0111111111111111111111111111111111011111111111111110011111111111111100000000000011110000000000001111100000000000011110000000000001111100000000000011110000000000000111100000000000011111000000000001111100000000000011111000000000000111100000000000011111000000000000111100000000000011111000000000000111100000000000011111000000000000111100000000000001111000000000000111110000000000001111000000000000111100000000000001111000000000000111110000000000
18
26
000001111111100000000011111111110000000111111111111000001111111111111100011111000000111100011111000000111100011110000000111100011110000000111100011111000000111100011111100001111100001111111111111100000111111111111000000111111111111000001111111111111100011111110011111110011111000000011111111110000000001111111100000000001111111100000000001111111100000000001111111110000000001111011110000000011111011111000000111111011111111111111110001111111111111100000111111111111000
18
25
000001111111100000000011111111110000001111110011111100001110000000011100011100000000001110111100000000001111111000000000000111111000000000000111111000000000000111111000000000000111111000000000000111111000000000000111111100000000001110011100000000011110001111000000111100001111110011111100000011111111111000000000111111110000000000000111110000000000000111100000000000000111000000000000001111000000000000001110000000000000011100000000000000111000000000

@ -0,0 +1,30 @@
16
22
0000111111110000000111111111110000111111111111100111110000111110011110000001111011111000000011111111000000001111111100000000111111110000000001111111000000000111111100000000011111110000000001111111000000000111111100000000011111110000000011111111000000001111111100000000111101111000000111110111100000011110011111000011111000111111111111000001111111111100
10
22
0000000110000000111000000111110000111111011111111111111111111111111111000001111100000111110000001111000000111100000011110000001111000000111100000011110000001111000000111100000011110000001111000000111100000011110000001110
17
23
0000000111110000000001111111111100000111111111111100011111111111111000111100000011111011111000000011110111100000000011101111000000000111011100000000011110000000000001111100000000000011111000000000011111100000000001111110000000001111111000000000111111100000000111111100000000011111110000000001111100000000000011110000000000001111000000000000011111111111111101111111111111111101111111111111111
17
23
0000011111100000000011111111110000001111111111110000111111111111110001111000000111100011100000001111001111000000011110001100000000111100000000000001111000000000011111100000000001111111000000000011111111000000000111111110000000000000111110000000000000111100000000000000111101100000000001111111100000000011111111100000001111001111000000111110011111111111111000011111111111110000011111111110000
18
23
000000000000110000000000000011110000000000000011110000000000000111110000000000001111110000000000001111110000000000011111110000000000111111110000000000111111110000000001110001110000000011110001110000000011100001110000000111100001110000001111000001110000001111000011110000011111000111111000111111111111111110111111111111111111011111111111111110000000000001110000000000000001110000000000000001110000000000000001110000
17
23
0000111111111110000011111111111100001111111111111000011110000000000000111100000000000001111000000000000111110000000000001111100000000000011111111111000000111111111111100001111111111111100011111000011111000111100000011111000000000000011110000000000000011100000000000000111100000000000001111111100000000111101111000000001111001111000000111110011111111111111000011111111111100000011111111110000
17
22
00000011111110000000011111111111000001111111111110000111110000111110001111000000111100111100000000110001111000000000000011100000000000000111111111111000011111111111111100111111111111111001111111000011111011111100000011111111110000000011110111100000000111101111000000001111011110000000011110111100000000111101111100000011110001111000001111100001111111111110000011111111111000
16
23
01111111111110001111111111111111111111111111111111111111111111110000000000111110000000000011110000000000001111000000000001111000000000001111000000000001111100000000000111100000000000111100000000000011110000000000011111000000000001111000000000001111100000000000111100000000000011110000000000001111000000000001111100000000000111100000000000011110000000000001111000000000
18
22
000001111111110000000011111111111000000111111111111100001111100000111100001111000000111110001111000000011110001111000000011110001111000000011110001111110001111100000111111111111000000111111111111100001111111111111100001111111111111110011111000000111111011110000000011111111100000000001111111100000000001111011110000000001111011111000000011111011111100000111110001111111111111100000111111111111100
17
22
00000111111110000000111111111110000011111111111110000111100000111110011111000001111100111100000001111001110000000011111111100000000011110111000000001111101111000000011111011111000001111110111111000111111100111111111111111000111111111111110000011111111111100000000000001111001100000000111100111100000001111001111100000111110001111100001111000011111111111110000011111111111000

@ -0,0 +1,30 @@
34
53
00000000000011111111100000000000000000000001111111111111110000000000000000111111111111111111111000000000001111111111111111111111111000000001111111111111111111111111110000000111111111111111111111111111100000111111111111111111111111111111000111111111111110000111111111111100011111111111110000011111111111111011111111111111000000111111111111111111111111111100000011111111111111111111111111110000001111111111111111111111111110000000111111111111111111111111111000000011111111111111111111111111100000001111111111111111111111111110000000111111111111111111111111111000000011111111111111111111111111100000001111111111111111111111111110000000111111111111111111111111111000000011111111111111111111111111100000001111111111111111111111111110000000111111111111111111111111111000000011111111111111111111111111100000001111111111111111111111111110000000111111111111111111111111111000000011111111111111111111111111100000001111111111111111111111111110000000111111111111111111111111111000000011111111111111111111111111100000001111111111111111111111111110000000111111111111111111111111111000000011111111111111111111111111100000001111111111111111111111111110000000111111111111111111111111111000000011111111111111111111111111100000001111111111111111111111111110000000111111111111111111111111111000000011111111111111111111111111100000001111111111111111111111111110000000111111111111111111111111111000000011111111111111111111111111100000001111111111111111111111111111000000111111111111111111111111111100000011111111111111111111111111110000001111111111111101111111111111000001111111111111100111111111111111001111111111111100001111111111111111111111111111110000011111111111111111111111111110000000111111111111111111111111110000000001111111111111111111111110000000000001111111111111111111100000000000000001111111111111111000000000
20
52
00000000000000111110000000000000011111110000000000001111111100000000000111111111000000000011111111110000000011111111111100000011111111111111000011111111111111110011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111011111111111111111110000001111111111111100000000111111111111000000001111111111110000000011111111111100000000011111111111000000000111111111110000000001111111111100000000011111111111000000000111111111110000000001111111111100000000011111111111000000000111111111110000000001111111111100000000011111111111000000000111111111110000000001111111111100000000011111111111000000000111111111110000000001111111111100000000011111111111000000000111111111110000000001111111111100000000011111111111000000000111111111110000000001111111111100000000011111111111000000000111111111110000000001111111111100000000011111111111000000000111111111110000000001111111111100000000011111111111000000000111111111110000000001111111111100000000011111111111000000000111111111110000000001111111111100000000011111111111
0
0
0
0
36
51
000000000000011111111111111111110000000000000000111111111111111111110000000000000000111111111111111111110000000000000000111111111111111111110000000000000001111111111111111111110000000000000001111111111111111111110000000000000011111111111111111111110000000000000011111111111111111111110000000000000011111111111111111111110000000000000111111111111111111111110000000000000111111111111111111111110000000000000111111111111111111111110000000000001111111111111111111111110000000000001111111100111111111111110000000000011111111100011111111111110000000000011111111000011111111111110000000000011111111000011111111111110000000000011111111000111111111111110000000000111111111000111111111111110000000001111111110000111111111111110000000001111111110000111111111111110000000001111111110000111111111111110000000011111111110000111111111111110000000011111111110000111111111111110000000011111111100000111111111111110000000011111111100000111111111111110000000111111111000000111111111111110000000111111111000000111111111111110000001111111111000000111111111111110000001111111111000000111111111111110000011111111110000000111111111111110000011111111110000000111111111111110000011111111110000000111111111111110000011111111110000000111111111111110000111111111110000001111111111111111000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111011111111111111111111111111111111111000000000000000000111111111111111000000000000000000000111111111111110000000000000000000000111111111111110000000000000000000000111111111111110000000000000000000000111111111111110000000000000000000000111111111111110000000000000000000000111111111111110000000000000000000000111111111111110000
33
51
011111111111111111111111111111000011111111111111111111111111111000011111111111111111111111111111000011111111111111111111111111111000011111111111111111111111111111000011111111111111111111111111111000011111111111111111111111111111000011111111111100000000000000000000011111111111100000000000000000000011111111111100000000000000000000011111111111100000000000000000000011111111111100000000000000000000011111111111100000000000000000000011111111111100000000000000000000011111111111100000011111100000000011111111111100011111111111110000011111111111110111111111111111000011111111111111111111111111111100011111111111111111111111111111100011111111111111111111111111111110011111111111111111111111111111110011111111111111000111111111111111011111111111110000001111111111111011111111111100000001111111111111011111111111100000001111111111111000000000000000000001111111111111000000000000000000001111111111111000000000000000000001111111111111000000000000000000001111111111111000000000000000000001111111111111000000000000000000001111111111111000000000000000000001111111111111000000000000000000001111111111111111111111111100000001111111111111111111111111100000001111111111111011111111111100000001111111111111011111111111100000001111111111111011111111111100000001111111111111011111111111100000001111111111111011111111111100000001111111111111011111111111100000001111111111111011111111111100000001111111111111011111111111110000001111111111111001111111111110000001111111111110001111111111111000111111111111110001111111111111111111111111111100000111111111111111111111111111100000011111111111111111111111111000000001111111111111111111111110000000000011111111111111111111100000000000001111111111111111110000000
0
0
26
50
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000011111111111100000000000000111111111111000000000000001111111111110000000000000011111111111100000000000001111111111111000000000000011111111111110000000000000111111111111000000000000011111111111110000000000000111111111111100000000000001111111111111000000000000011111111111110000000000000111111111111000000000000001111111111110000000000000111111111111100000000000001111111111110000000000000011111111111100000000000001111111111111000000000000011111111111110000000000000111111111111100000000000001111111111110000000000000111111111111100000000000001111111111111000000000000011111111111110000000000000111111111111100000000000001111111111110000000000000111111111111100000000000001111111111111000000000000011111111111100000000000001111111111111000000000000011111111111110000000000000111111111111100000000000001111111111111000000000000111111111111100000000000001111111111111000000000000011111111111110000000000000111111111111100000000000001111111111111000000000000111111111111100000000000001111111111111000000000000011111111111110000000000001111111111111000000000
34
53
00000000000000011100000000000000000000000000011111111111100000000000000000011111111111111111111000000000000111111111111111111111111000000000111111111111111111111111110000000111111111111111111111111111100000011111111111111111111111111110000011111111111111011111111111111100001111111111111000011111111111110001111111111111000000111111111111000111111111111100000011111111111100011111111111110000001111111111110001111111111111000000111111111111100111111111111100000011111111111110011111111111110000001111111111111001111111111111000000111111111111100111111111111100000011111111111110011111111111110000001111111111111001111111111111000000111111111111000011111111111100000011111111111100001111111111110000011111111111110000011111111111100001111111111110000001111111111111111111111111110000000001111111111111111111111100000000000111111111111111111111110000000000011111111111111111111111000000000011111111111111111111111110000000011111111111111111111111111110000011111111111111111111111111111100001111111111111000111111111111110001111111111111000001111111111111000111111111111100000011111111111110011111111111110000001111111111111001111111111110000000111111111111101111111111111000000011111111111110111111111111100000001111111111111011111111111110000000111111111111101111111111111000000011111111111111111111111111100000001111111111111111111111111110000000111111111111111111111111111000000011111111111111111111111111100000001111111111111011111111111110000000111111111111100111111111111000000011111111111110011111111111110000001111111111111001111111111111000000111111111111100111111111111100000111111111111100011111111111111111111111111111110000111111111111111111111111111111000001111111111111111111111111111000000111111111111111111111111111100000000111111111111111111111111000000000001111111111111111111111000000
34
53
00000000000000011000000000000000000000000000111111111111100000000000000000111111111111111111111000000000001111111111111111111111111000000001111111111111111111111111110000001111111111111111111111111111100001111111111111111111111111111111000111111111111111011111111111111100111111111111111000011111111111111011111111111111000000111111111111101111111111111000000011111111111111111111111111100000001111111111111111111111111110000000011111111111111111111111111000000001111111111111111111111111100000000111111111111111111111111110000000011111111111111111111111111000000001111111111111111111111111100000000111111111111111111111111110000000011111111111111111111111111000000001111111111111111111111111100000000111111111111111111111111110000000011111111111111111111111111000000001111111111111111111111111100000000111111111111111111111111110000000011111111111111111111111111000000011111111111111111111111111110000001111111111111111111111111111000001111111111111111111111111111111111111111111111111111111111111111111111111111111111101111111111111111111111111111111110111111111111111111111111111111111000111111111111111101111111111111100001111111111111000011111111111110000011111111111000001111111111111000000000000000000000111111111111100000000000000000000011111111111110000000000000000000001111111111111000000000000000000000111111111111100000000000000000000011111111111111111111111111000000001111111111111111111111111100000000111111111111111111111111110000000011111111111111111111111111000000001111111111111111111111111100000001111111111111111111111111111000000111111111111101111111111111100000111111111111110011111111111111111111111111111110000111111111111111111111111111111000011111111111111111111111111111000000111111111111111111111111111000000000111111111111111111111110000000000001111111111111111111110000000

@ -81,20 +81,20 @@ public class sigPlace {
final static int TRANSPARENT = new Color(0,0,0,0).getRGB();
public static void main(String[] args) {
String fontName = "itg_diff";
String value = "12";
Path f = Paths.get("itg1.png");
/*String fontName = "ddr_diff";
String value = "10";
Path f = Paths.get("ddr4.png");
BufferedImage img;
try {
img = ImageIO.read(f.toFile());
Box scoreBox = new Box(277,364,64,60);
Box scoreBox = new Box(600,165,133,53);
int[] arr = img.getRGB(scoreBox.x, scoreBox.y, scoreBox.w, scoreBox.h, null, 0, scoreBox.w);
BufferedImage newImg = new BufferedImage(scoreBox.w,scoreBox.h,BufferedImage.TYPE_INT_ARGB);
final ColorRange TARGETCOLOR = new ColorRange(0,5,0,5,0,5);
final ColorRange SEEKINGCOLOR = new ColorRange(0,5,0,5,0,5);
final ColorRange TARGETCOLOR = new ColorRange(190,255,190,255,190,255);
final ColorRange SEEKINGCOLOR = new ColorRange(140,255,140,255,140,255);
final Color FINALCOLOR = Color.MAGENTA;
for (int i=0;i<arr.length;i++) {
Color col = new Color(arr[i],true);
@ -114,7 +114,7 @@ public class sigPlace {
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}*/
//ArcadeReader.retrieveData(Paths.get("itg1.png"));
/* Path secretFile = Paths.get(".clientsecret");
List<String> data;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 362 B

After

Width:  |  Height:  |  Size: 546 B

Loading…
Cancel
Save