+ imgWidth = getWidth();
+ imgHeight = getHeight();
+
+ imgWidth -= (imgWidth % charWidth);
+ imgHeight -= (imgHeight % charHeight);
+
+ BufferedImage newimg = new BufferedImage(imgWidth, imgHeight,
+ BufferedImage.TYPE_INT_ARGB);
+
+ gg = (Graphics2D) newimg.getGraphics();
+ gg.setFont(av.getFont());
+ gg.drawImage(img, null, 0, 0);
+ img = newimg;
+
+ transX = (er - horizontal - sr) * charWidth;
+ sr = er - horizontal - sr;