Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /* NOTICE: This file has been changed by Plutext Pty Ltd for use in docx4j.
   * The package name has been changed; there may also be other changes.
   * 
   * This notice is included to meet the condition in clause 4(b) of the License. 
   */
  
   
  package org.docx4j.fonts.fop.fonts.base14;
  
 
 import java.util.Set;
 
 
 public class CourierBoldOblique extends Base14Font {
     private final static String fontName = "Courier-BoldOblique";
     private final static String fullName = "Courier Bold Oblique";
     private final static Set familyNames;
     private final static String encoding = "WinAnsiEncoding";
     private final static int capHeight = 562;
     private final static int xHeight = 439;
     private final static int ascender = 626;
     private final static int descender = -142;
     private final static int firstChar = 32;
     private final static int lastChar = 255;
     private final static int[] width;
     private final CodePointMapping mapping =
         CodePointMapping.getMapping("WinAnsiEncoding");
 
 
     private boolean enableKerning = false;
 
     static {
          = new int[256];
         
               [0x41] = 600;
               [0xc6] = 600;
               [0xc1] = 600;
               [0xc2] = 600;
               [0xc4] = 600;
               [0xc0] = 600;
               [0xc5] = 600;
               [0xc3] = 600;
               [0x42] = 600;
               [0x43] = 600;
               [0xc7] = 600;
               [0x44] = 600;
               [0x45] = 600;
               [0xc9] = 600;
               [0xca] = 600;
               [0xcb] = 600;
               [0xc8] = 600;
               [0xd0] = 600;
               [0x80] = 600;
               [0x46] = 600;
               [0x47] = 600;
       
               [0x48] = 600;
               [0x49] = 600;
       
               [0xcd] = 600;
               [0xce] = 600;
               [0xcf] = 600;
       
               [0xcc] = 600;
               [0x4a] = 600;
               [0x4b] = 600;
               [0x4c] = 600;
       
       
               [0x4d] = 600;
               [0x4e] = 600;
               [0xd1] = 600;
               [0x4f] = 600;
               [0x8c] = 600;
               [0xd3] = 600;
               [0xd4] = 600;
               [0xd6] = 600;
               [0xd2] = 600;
               [0xd8] = 600;
               [0xd5] = 600;
               [0x50] = 600;
               [0x51] = 600;
               [0x52] = 600;
               [0x53] = 600;
               [0x8a] = 600;
       
               [0x54] = 600;
               [0xde] = 600;
               [0x55] = 600;
               [0xda] = 600;
               [0xdb] = 600;
               [0xdc] = 600;
               [0xd9] = 600;
               [0x56] = 600;
               [0x57] = 600;
              [0x58] = 600;
              [0x59] = 600;
              [0xdd] = 600;
              [0x9f] = 600;
              [0x5a] = 600;
              [0x8e] = 600;
              [0x61] = 600;
              [0xe1] = 600;
              [0xe2] = 600;
              [0xb4] = 600;
              [0xe4] = 600;
              [0xe6] = 600;
              [0xe0] = 600;
              [0x26] = 600;
              [0xe5] = 600;
      
      
      
      
      
              [0x5e] = 600;
              [0x7e] = 600;
              [0x2a] = 600;
              [0x40] = 600;
              [0xe3] = 600;
              [0x62] = 600;
              [0x5c] = 600;
              [0x7c] = 600;
              [0x7b] = 600;
              [0x7d] = 600;
              [0x5b] = 600;
              [0x5d] = 600;
      
              [0xa6] = 600;
              [0x95] = 600;
              [0x63] = 600;
      
              [0xe7] = 600;
              [0xb8] = 600;
              [0xa2] = 600;
      
              [0x88] = 600;
              [0x3a] = 600;
              [0x2c] = 600;
              [0xa9] = 600;
              [0xa4] = 600;
              [0x64] = 600;
              [0x86] = 600;
              [0x87] = 600;
      
              [0xb0] = 600;
              [0xa8] = 600;
              [0xf7] = 600;
              [0x24] = 600;
      
      
      
              [0x65] = 600;
              [0xe9] = 600;
              [0xea] = 600;
              [0xeb] = 600;
              [0xe8] = 600;
              [0x38] = 600;
              [0x85] = 600;
              [0x97] = 600;
              [0x96] = 600;
              [0x3d] = 600;
              [0xf0] = 600;
              [0x21] = 600;
              [0xa1] = 600;
              [0x66] = 600;
      
              [0x35] = 600;
      
              [0x83] = 600;
      
              [0x34] = 600;
      
              [0x67] = 600;
      
              [0xdf] = 600;
              [0x60] = 600;
      
              [0x3e] = 600;
              [0xab] = 600;
              [0xbb] = 600;
              [0x8b] = 600;
              [0x9b] = 600;
              [0x68] = 600;
      
              [0x2d] = 600;
              [0x69] = 600;
              [0xed] = 600;
              [0xee] = 600;
              [0xef] = 600;
              [0xec] = 600;
      
      
              [0x6a] = 600;
              [0x6b] = 600;
              [0x6c] = 600;
      
      
              [0x3c] = 600;
      
      
              [0xac] = 600;
      
              [0x6d] = 600;
              [0xaf] = 600;
      
      
              [0xb5] = 600;
              [0xd7] = 600;
              [0x6e] = 600;
              [0x39] = 600;
      
              [0xf1] = 600;
              [0x23] = 600;
              [0x6f] = 600;
              [0xf3] = 600;
              [0xf4] = 600;
              [0xf6] = 600;
              [0x9c] = 600;
      
              [0xf2] = 600;
              [0x31] = 600;
              [0xbd] = 600;
              [0xbc] = 600;
              [0xb9] = 600;
              [0xaa] = 600;
              [0xba] = 600;
              [0xf8] = 600;
              [0xf5] = 600;
      
              [0x70] = 600;
              [0xb6] = 600;
              [0x28] = 600;
              [0x29] = 600;
              [0x25] = 600;
              [0x2e] = 600;
              [0xb7] = 600;
              [0x89] = 600;
              [0x2b] = 600;
              [0xb1] = 600;
      
              [0x71] = 600;
              [0x3f] = 600;
              [0xbf] = 600;
              [0x22] = 600;
              [0x84] = 600;
              [0x93] = 600;
              [0x94] = 600;
              [0x91] = 600;
              [0x92] = 600;
              [0x82] = 600;
              [0x27] = 600;
              [0x72] = 600;
              [0xae] = 600;
      
      
              [0x73] = 600;
              [0x9a] = 600;
      
              [0xa7] = 600;
              [0x3b] = 600;
              [0x37] = 600;
              [0x36] = 600;
              [0x2f] = 600;
              [0x20] = 600;
      
      
      
              [0xa3] = 600;
      
              [0x74] = 600;
      
              [0xfe] = 600;
              [0x33] = 600;
              [0xbe] = 600;
              [0xb3] = 600;
              [0x98] = 600;
              [0x99] = 600;
              [0x32] = 600;
              [0xb2] = 600;
              [0x75] = 600;
              [0xfa] = 600;
              [0xfb] = 600;
              [0xfc] = 600;
              [0xf9] = 600;
              [0x5f] = 600;
      
              [0x76] = 600;
              [0x77] = 600;
              [0x78] = 600;
              [0x79] = 600;
              [0xfd] = 600;
              [0xff] = 600;
              [0xa5] = 600;
              [0x7a] = 600;
              [0x9e] = 600;
              [0x30] = 600;
   
         = new java.util.HashSet();
        .add("Courier");
    }
    public CourierBoldOblique() {
        this(false);
    }
    public CourierBoldOblique(boolean enableKerning) {
        this. = enableKerning;
    }
    public String getEncodingName() {
        return ;
    }
    public String getFontName() {
        return ;
    }
    public String getEmbedFontName() {
        return getFontName();
    }
    public String getFullName() {
        return ;
    }
    public Set getFamilyNames() {
        return ;
    }
    public FontType getFontType() {
        return .;
    }
    public int getAscender(int size) {
        return size * ;
    }
    public int getCapHeight(int size) {
        return size * ;
    }
    public int getDescender(int size) {
        return size * ;
    }
    public int getXHeight(int size) {
        return size * ;
    }
    public int getFirstChar() {
        return ;
    }
    public int getLastChar() {
        return ;
    }
    public int getWidth(int i,int size) {
        return size * [i];
    }
    public int[] getWidths() {
        int[] arr = new int[getLastChar() - getFirstChar() + 1];
        System.arraycopy(getFirstChar(), arr, 0, getLastChar() - getFirstChar() + 1);
        return arr;
    }
    public boolean hasKerningInfo() {
        return false;
    }
    public java.util.Map getKerningInfo() {
        return ...;
    }
  
    public char mapChar(char c) {
        notifyMapOperation();
        char d = .mapChar(c);
        if (d != 0) {
            return d;
        } else {
            this.warnMissingGlyph(c);
            return .;
        }
    }
    public boolean hasChar(char c) {
        return (.mapChar(c) > 0);
    }
}
  
New to GrepCode? Check out our FAQ X