Love Live Reader attempts to convert multiple glyphs like ITG Reader, add pre-checks

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
sigonasr2 2022-08-21 14:06:53 -05:00
parent 92efb3da51
commit 0f1f6b075c
7 changed files with 8 additions and 4 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -315,10 +315,14 @@ public class LoveLiveReader extends Reader{
case 9:{
Font f = Font.FONT_LOVELIVE_PCT;
List<Glyph> glyphs = Glyph.split(cutImg);
glyphs.remove(glyphs.size()-3);
glyphs.remove(glyphs.size()-1);
String res = f.convertGlyphs(glyphs);
return res.substring(0,glyphs.size()-1)+"."+res.substring(glyphs.size()-1,glyphs.size());
if (glyphs.size()>3) {
glyphs.remove(glyphs.size()-3);
glyphs.remove(glyphs.size()-1);
String res = f.convertGlyphs(glyphs);
return res.substring(0,glyphs.size()-1)+"."+res.substring(glyphs.size()-1,glyphs.size());
} else {
return "";
}
}
}
return "";

Binary file not shown.