From fade88b658bd022bde9b1240bdf74b64f22bbd6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sat, 20 Feb 2021 07:36:20 +0100 Subject: [PATCH] removed unused class --- .../src/gnu/jpdf/PDFFontDescriptor.java | 48 ------------------- 1 file changed, 48 deletions(-) delete mode 100644 libsrc/gnujpdf/src/gnu/jpdf/PDFFontDescriptor.java diff --git a/libsrc/gnujpdf/src/gnu/jpdf/PDFFontDescriptor.java b/libsrc/gnujpdf/src/gnu/jpdf/PDFFontDescriptor.java deleted file mode 100644 index d38ea5ee2..000000000 --- a/libsrc/gnujpdf/src/gnu/jpdf/PDFFontDescriptor.java +++ /dev/null @@ -1,48 +0,0 @@ -package gnu.jpdf; - -import java.io.IOException; -import java.io.OutputStream; -import java.io.Serializable; - -/** - * - * @author JPEXS - */ -public class PDFFontDescriptor extends PDFObject implements Serializable { - - private final String fontName; - private final int ascent; - private final int descent; - private final int capheight; - private final int stemv; - private final String fontFile2; - - public PDFFontDescriptor(String fontName, int ascent, int descent, int capheight, int stemv, String fontFile2) { - super("/FontDescriptor"); - this.fontName = fontName; - this.ascent = ascent; - this.descent = descent; - this.capheight = capheight; - this.stemv = stemv; - this.fontFile2 = fontFile2; - } - - @Override - public void write(OutputStream os) throws IOException { - writeStart(os); - os.write("/FontName ".getBytes()); - os.write(fontName.getBytes()); - os.write("\n".getBytes()); - os.write("/Flags 4\n".getBytes()); - os.write("/FontBBox [0 -16 725 863]\n".getBytes()); - os.write("/ItalicAngle 0\n".getBytes()); - os.write(("/Ascent " + ascent + "\n").getBytes()); - os.write(("/Descent " + descent + "\n").getBytes()); - os.write(("/CapHeight " + capheight + "\n").getBytes()); - os.write(("/StemV " + stemv + "\n").getBytes()); - //os.write("/MissingWidth 0\n".getBytes()); - os.write(("/FontFile2 " + fontFile2 + "\n").getBytes()); - writeEnd(os); - } - -}