1 3 package org.faceless.pdf; 4 5 import java.util.*; 6 7 14 public class StandardFont extends PDFFont 15 { 16 19 public static final int COURIERBOLD=0; 20 21 24 public static final int COURIERBOLDOBLIQUE=1; 25 26 29 public static final int COURIEROBLIQUE=2; 30 31 34 public static final int COURIER=3; 35 36 39 public static final int HELVETICABOLD=4; 40 41 44 public static final int HELVETICABOLDOBLIQUE=5; 45 46 49 public static final int HELVETICAOBLIQUE=6; 50 51 54 public static final int HELVETICA=7; 55 56 59 public static final int SYMBOL=8; 60 61 64 public static final int TIMESBOLD=9; 65 66 69 public static final int TIMESBOLDITALIC=10; 70 71 74 public static final int TIMESITALIC=11; 75 76 79 public static final int TIMES=12; 80 81 87 public static final int ZAPFDINGBATS=13; 88 89 private static final int[] map = { 9, 11, 10, 8, 5, 7, 6, 4, 12, 1, 3, 2, 0, 13 }; 90 91 public StandardFont(int type) 92 { 93 super(new org.faceless.pdf2.StandardFont(map[type])); 94 } 95 96 101 public PDFFont versionItalic() 102 { 103 return (PDFFont)PeeredObject.getPeer(((org.faceless.pdf2.StandardFont)font).versionItalic()); 104 } 105 106 111 public PDFFont versionBold() 112 { 113 return (PDFFont)PeeredObject.getPeer(((org.faceless.pdf2.StandardFont)font).versionBold()); 114 } 115 116 121 public PDFFont versionRegular() 122 { 123 return (PDFFont)PeeredObject.getPeer(((org.faceless.pdf2.StandardFont)font).versionRegular()); 124 } 125 } 126 | Popular Tags |