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 ZapfDingbats extends Base14Font {
     private final static String fontName = "ZapfDingbats";
     private final static String fullName = "ITC Zapf Dingbats";
     private final static Set familyNames;
     private final static String encoding = "ZapfDingbatsEncoding";
     private final static int capHeight = 820;
     private final static int xHeight = 426;
     private final static int ascender = 820;
     private final static int descender = -143;
     private final static int firstChar = 32;
     private final static int lastChar = 255;
     private final static int[] width;
     private final CodePointMapping mapping =
         CodePointMapping.getMapping("ZapfDingbatsEncoding");
 
 
     private boolean enableKerning = false;
 
     static {
          = new int[256];
         
             [0x20] = 278;
             [0x21] = 974;
             [0x22] = 961;
             [0x23] = 974;
             [0x24] = 980;
             [0x25] = 719;
             [0x26] = 789;
             [0x27] = 790;
             [0x28] = 791;
             [0x29] = 690;
             [0x2A] = 960;
             [0x2B] = 939;
             [0x2C] = 549;
             [0x2D] = 855;
             [0x2E] = 911;
             [0x2F] = 933;
             [0x30] = 911;
             [0x31] = 945;
             [0x32] = 974;
             [0x33] = 755;
             [0x34] = 846;
             [0x35] = 762;
             [0x36] = 761;
             [0x37] = 571;
             [0x38] = 677;
             [0x39] = 763;
             [0x3A] = 760;
             [0x3B] = 759;
             [0x3C] = 754;
             [0x3D] = 494;
             [0x3E] = 552;
             [0x3F] = 537;
             [0x40] = 577;
             [0x41] = 692;
             [0x42] = 786;
             [0x43] = 788;
             [0x44] = 788;
             [0x45] = 790;
             [0x46] = 793;
             [0x47] = 794;
             [0x48] = 816;
             [0x49] = 823;
             [0x4A] = 789;
             [0x4B] = 841;
             [0x4C] = 823;
             [0x4D] = 833;
             [0x4E] = 816;
             [0x4F] = 831;
             [0x50] = 923;
             [0x51] = 744;
             [0x52] = 723;
             [0x53] = 749;
             [0x54] = 790;
             [0x55] = 792;
             [0x56] = 695;
             [0x57] = 776;
             [0x58] = 768;
             [0x59] = 792;
             [0x5A] = 759;
             [0x5B] = 707;
             [0x5C] = 708;
            [0x5D] = 682;
            [0x5E] = 701;
            [0x5F] = 826;
            [0x60] = 815;
            [0x61] = 789;
            [0x62] = 789;
            [0x63] = 707;
            [0x64] = 687;
            [0x65] = 696;
            [0x66] = 689;
            [0x67] = 786;
            [0x68] = 787;
            [0x69] = 713;
            [0x6A] = 791;
            [0x6B] = 785;
            [0x6C] = 791;
            [0x6D] = 873;
            [0x6E] = 761;
            [0x6F] = 762;
            [0x70] = 762;
            [0x71] = 759;
            [0x72] = 759;
            [0x73] = 892;
            [0x74] = 892;
            [0x75] = 788;
            [0x76] = 784;
            [0x77] = 438;
            [0x78] = 138;
            [0x79] = 277;
            [0x7A] = 415;
            [0x7B] = 392;
            [0x7C] = 392;
            [0x7D] = 668;
            [0x7E] = 668;
            [0xA1] = 732;
            [0xA2] = 544;
            [0xA3] = 544;
            [0xA4] = 910;
            [0xA5] = 667;
            [0xA6] = 760;
            [0xA7] = 760;
            [0xA8] = 776;
            [0xA9] = 595;
            [0xAA] = 694;
            [0xAB] = 626;
            [0xAC] = 788;
            [0xAD] = 788;
            [0xAE] = 788;
            [0xAF] = 788;
            [0xB0] = 788;
            [0xB1] = 788;
            [0xB2] = 788;
            [0xB3] = 788;
            [0xB4] = 788;
            [0xB5] = 788;
            [0xB6] = 788;
            [0xB7] = 788;
            [0xB8] = 788;
            [0xB9] = 788;
            [0xBA] = 788;
            [0xBB] = 788;
            [0xBC] = 788;
            [0xBD] = 788;
            [0xBE] = 788;
            [0xBF] = 788;
            [0xC0] = 788;
            [0xC1] = 788;
            [0xC2] = 788;
            [0xC3] = 788;
            [0xC4] = 788;
            [0xC5] = 788;
            [0xC6] = 788;
            [0xC7] = 788;
            [0xC8] = 788;
            [0xC9] = 788;
            [0xCA] = 788;
            [0xCB] = 788;
            [0xCC] = 788;
            [0xCD] = 788;
            [0xCE] = 788;
            [0xCF] = 788;
            [0xD0] = 788;
            [0xD1] = 788;
            [0xD2] = 788;
            [0xD3] = 788;
            [0xD4] = 894;
            [0xD5] = 838;
            [0xD6] = 1016;
            [0xD7] = 458;
            [0xD8] = 748;
            [0xD9] = 924;
            [0xDA] = 748;
            [0xDB] = 918;
            [0xDC] = 927;
            [0xDD] = 928;
            [0xDE] = 928;
            [0xDF] = 834;
            [0xE0] = 873;
            [0xE1] = 828;
            [0xE2] = 924;
            [0xE3] = 924;
            [0xE4] = 917;
            [0xE5] = 930;
            [0xE6] = 931;
            [0xE7] = 463;
            [0xE8] = 883;
            [0xE9] = 836;
            [0xEA] = 836;
            [0xEB] = 867;
            [0xEC] = 867;
            [0xED] = 696;
            [0xEE] = 696;
            [0xEF] = 874;
            [0xF1] = 874;
            [0xF2] = 760;
            [0xF3] = 946;
            [0xF4] = 771;
            [0xF5] = 865;
            [0xF6] = 771;
            [0xF7] = 888;
            [0xF8] = 967;
            [0xF9] = 888;
            [0xFA] = 831;
            [0xFB] = 873;
            [0xFC] = 927;
            [0xFD] = 970;
            [0xFE] = 918;
            [0x89] = 410;
            [0x87] = 509;
            [0x8C] = 334;
            [0x86] = 509;
            [0x80] = 390;
            [0x8A] = 234;
            [0x84] = 276;
            [0x81] = 390;
            [0x88] = 410;
            [0x83] = 317;
            [0x82] = 317;
            [0x85] = 276;
            [0x8D] = 334;
            [0x8B] = 234;
  
         = new java.util.HashSet();
        .add("ZapfDingbats");
    }
    public ZapfDingbats() {
        this(false);
    }
    public ZapfDingbats(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