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 Symbol extends Base14Font {
     private final static String fontName = "Symbol";
     private final static String fullName = "Symbol";
     private final static Set familyNames;
     private final static String encoding = "SymbolEncoding";
     private final static int capHeight = 1010;
     private final static int xHeight = 520;
     private final static int ascender = 1010;
     private final static int descender = -293;
     private final static int firstChar = 32;
     private final static int lastChar = 255;
     private final static int[] width;
     private final CodePointMapping mapping =
         CodePointMapping.getMapping("SymbolEncoding");
 
 
     private boolean enableKerning = false;
 
     static {
          = new int[256];
         
             [0x20] = 250;
             [0x21] = 333;
             [0x22] = 713;
             [0x23] = 500;
             [0x24] = 549;
             [0x25] = 833;
             [0x26] = 778;
             [0x27] = 439;
             [0x28] = 333;
             [0x29] = 333;
             [0x2a] = 500;
             [0x2b] = 549;
             [0x2c] = 250;
             [0x2d] = 549;
             [0x2e] = 250;
             [0x2f] = 278;
             [0x30] = 500;
             [0x31] = 500;
             [0x32] = 500;
             [0x33] = 500;
             [0x34] = 500;
             [0x35] = 500;
             [0x36] = 500;
             [0x37] = 500;
             [0x38] = 500;
             [0x39] = 500;
             [0x3a] = 278;
             [0x3b] = 278;
             [0x3c] = 549;
             [0x3d] = 549;
             [0x3e] = 549;
             [0x3f] = 444;
             [0x40] = 549;
             [0x41] = 722;
             [0x42] = 667;
             [0x43] = 722;
             [0x44] = 612;
             [0x45] = 611;
             [0x46] = 763;
             [0x47] = 603;
             [0x48] = 722;
             [0x49] = 333;
             [0x4a] = 631;
             [0x4b] = 722;
             [0x4c] = 686;
             [0x4d] = 889;
             [0x4e] = 722;
             [0x4f] = 722;
             [0x50] = 768;
             [0x51] = 741;
             [0x52] = 556;
             [0x53] = 592;
             [0x54] = 611;
             [0x55] = 690;
             [0x56] = 439;
             [0x57] = 768;
             [0x58] = 645;
             [0x59] = 795;
             [0x5a] = 611;
             [0x5b] = 333;
             [0x5c] = 863;
            [0x5d] = 333;
            [0x5e] = 658;
            [0x5f] = 500;
            [0x60] = 500;
            [0x61] = 631;
            [0x62] = 549;
            [0x63] = 549;
            [0x64] = 494;
            [0x65] = 439;
            [0x66] = 521;
            [0x67] = 411;
            [0x68] = 603;
            [0x69] = 329;
            [0x6a] = 603;
            [0x6b] = 549;
            [0x6c] = 549;
    
            [0x6d] = 576;
            [0x6e] = 521;
            [0x6f] = 549;
            [0x70] = 549;
            [0x71] = 521;
            [0x72] = 549;
            [0x73] = 603;
            [0x74] = 439;
            [0x75] = 576;
            [0x76] = 713;
            [0x77] = 686;
            [0x78] = 493;
            [0x79] = 686;
            [0x7a] = 494;
            [0x7b] = 480;
            [0x7c] = 200;
            [0x7d] = 480;
            [0x7e] = 549;
            [0xa0] = 750;
            [0xa1] = 620;
            [0xa2] = 247;
            [0xa3] = 549;
            [0xa4] = 167;
            [0xa5] = 713;
            [0xa6] = 500;
            [0xa7] = 753;
            [0xa8] = 753;
            [0xa9] = 753;
            [0xaa] = 753;
            [0xab] = 1042;
            [0xac] = 987;
            [0xad] = 603;
            [0xae] = 987;
            [0xaf] = 603;
            [0xb0] = 400;
            [0xb1] = 549;
            [0xb2] = 411;
            [0xb3] = 549;
            [0xb4] = 549;
            [0xb5] = 713;
            [0xb6] = 494;
            [0xb7] = 460;
            [0xb8] = 549;
            [0xb9] = 549;
            [0xba] = 549;
            [0xbb] = 549;
            [0xbc] = 1000;
            [0xbd] = 603;
            [0xbe] = 1000;
            [0xbf] = 658;
            [0xc0] = 823;
            [0xc1] = 686;
            [0xc2] = 795;
            [0xc3] = 987;
            [0xc4] = 768;
            [0xc5] = 768;
            [0xc6] = 823;
            [0xc7] = 768;
            [0xc8] = 768;
            [0xc9] = 713;
            [0xca] = 713;
            [0xcb] = 713;
            [0xcc] = 713;
            [0xcd] = 713;
            [0xce] = 713;
            [0xcf] = 713;
            [0xd0] = 768;
            [0xd1] = 713;
            [0xd2] = 790;
            [0xd3] = 790;
            [0xd4] = 890;
            [0xd5] = 823;
            [0xd6] = 549;
            [0xd7] = 250;
            [0xd8] = 713;
            [0xd9] = 603;
            [0xda] = 603;
            [0xdb] = 1042;
            [0xdc] = 987;
            [0xdd] = 603;
            [0xde] = 987;
            [0xdf] = 603;
            [0xe0] = 494;
            [0xe1] = 329;
            [0xe2] = 790;
            [0xe3] = 790;
            [0xe4] = 786;
            [0xe5] = 713;
            [0xe6] = 384;
            [0xe7] = 384;
            [0xe8] = 384;
            [0xe9] = 384;
            [0xea] = 384;
            [0xeb] = 384;
            [0xec] = 494;
            [0xed] = 494;
            [0xee] = 494;
            [0xef] = 494;
            [0xf1] = 329;
            [0xf2] = 274;
            [0xf3] = 686;
            [0xf4] = 686;
            [0xf5] = 686;
            [0xf6] = 384;
            [0xf7] = 384;
            [0xf8] = 384;
            [0xf9] = 384;
            [0xfa] = 384;
            [0xfb] = 384;
            [0xfc] = 494;
            [0xfd] = 494;
            [0xfe] = 494;
    
  
         = new java.util.HashSet();
        .add("Symbol");
    }
    public Symbol() {
        this(false);
    }
    public Symbol(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