diff --git a/readers/DDRReader.java b/readers/DDRReader.java index 71da7e3..3be68c9 100644 --- a/readers/DDRReader.java +++ b/readers/DDRReader.java @@ -2,6 +2,7 @@ package readers; import java.awt.Color; import java.awt.Graphics2D; import java.awt.image.BufferedImage; +import java.io.File; import java.io.IOException; import java.nio.file.Path; import java.nio.file.Paths; @@ -132,13 +133,19 @@ public class DDRReader extends Reader{ Graphics2D g = cutImg.createGraphics(); int currentHeight=0; for (int i=0;i glyphs = Glyph.split(cutImg); + return f.convertGlyphs(glyphs); + } } return ""; } diff --git a/readers/fonts/Font.java b/readers/fonts/Font.java index af63daf..8c5d4e6 100644 --- a/readers/fonts/Font.java +++ b/readers/fonts/Font.java @@ -184,7 +184,7 @@ public class Font { if (score>bestScore) { bestScore=score; bestGlyph=j; - System.out.println("Glyph "+j+" has a score of "+bestScore+"."); + //System.out.println("Glyph "+j+" has a score of "+bestScore+"."); } } sb.append(bestGlyph); diff --git a/sub.png b/sub.png new file mode 100644 index 0000000..060b478 Binary files /dev/null and b/sub.png differ