 /*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.fop.fonts.base14;

import java.awt.Rectangle;
import java.net.URI;

import java.util.Set;

import org.apache.fop.fonts.Base14Font;
import org.apache.fop.fonts.CodePointMapping;
import org.apache.fop.fonts.FontType;
import org.apache.fop.fonts.Typeface;

// CSOFF: ConstantNameCheck

public class Courier extends Base14Font {
    private static final URI fontFileURI;
    private static final String fontName = "Courier";
    private static final String fullName = "Courier";
    private static final Set familyNames;
    private static final int underlinePosition = -100;
    private static final int underlineThickness = 50;
    private static final String encoding = "WinAnsiEncoding";
    private static final int capHeight = 562;
    private static final int xHeight = 426;
    private static final int ascender = 629;
    private static final int descender = -157;
    private static final int firstChar = 32;
    private static final int lastChar = 255;
    private static final int[] width;
    private static final Rectangle[] boundingBoxes;
    private final CodePointMapping mapping =
        CodePointMapping.getMapping("WinAnsiEncoding");


    private boolean enableKerning;

    static {
        URI uri = null;
        try {
            uri = new URI("base14:" + fontName.toLowerCase());
        } catch (java.net.URISyntaxException e) {
          throw new RuntimeException(e);
        }
        fontFileURI = uri;
        width = new int[256];
        boundingBoxes = new Rectangle[256];

        width[0x41] = 600;
        boundingBoxes[0x41] = new Rectangle(3, 0, 594, 562);
        width[0xc6] = 600;
        boundingBoxes[0xc6] = new Rectangle(3, 0, 547, 562);
        width[0xc1] = 600;
        boundingBoxes[0xc1] = new Rectangle(3, 0, 594, 805);
        width[0xc2] = 600;
        boundingBoxes[0xc2] = new Rectangle(3, 0, 594, 787);
        width[0xc4] = 600;
        boundingBoxes[0xc4] = new Rectangle(3, 0, 594, 753);
        width[0xc0] = 600;
        boundingBoxes[0xc0] = new Rectangle(3, 0, 594, 805);
        width[0xc5] = 600;
        boundingBoxes[0xc5] = new Rectangle(3, 0, 594, 750);
        width[0xc3] = 600;
        boundingBoxes[0xc3] = new Rectangle(3, 0, 594, 729);
        width[0x42] = 600;
        boundingBoxes[0x42] = new Rectangle(43, 0, 516, 562);
        width[0x43] = 600;
        boundingBoxes[0x43] = new Rectangle(41, -18, 499, 598);
        width[0xc7] = 600;
        boundingBoxes[0xc7] = new Rectangle(41, -151, 499, 731);
        width[0x44] = 600;
        boundingBoxes[0x44] = new Rectangle(43, 0, 531, 562);
        width[0x45] = 600;
        boundingBoxes[0x45] = new Rectangle(53, 0, 497, 562);
        width[0xc9] = 600;
        boundingBoxes[0xc9] = new Rectangle(53, 0, 497, 805);
        width[0xca] = 600;
        boundingBoxes[0xca] = new Rectangle(53, 0, 497, 787);
        width[0xcb] = 600;
        boundingBoxes[0xcb] = new Rectangle(53, 0, 497, 753);
        width[0xc8] = 600;
        boundingBoxes[0xc8] = new Rectangle(53, 0, 497, 805);
        width[0xd0] = 600;
        boundingBoxes[0xd0] = new Rectangle(30, 0, 544, 562);
        width[0x80] = 600;
        boundingBoxes[0x80] = new Rectangle(0, 0, 0, 0);
        width[0x46] = 600;
        boundingBoxes[0x46] = new Rectangle(53, 0, 492, 562);
        width[0x47] = 600;
        boundingBoxes[0x47] = new Rectangle(31, -18, 544, 598);
        width[0x48] = 600;
        boundingBoxes[0x48] = new Rectangle(32, 0, 536, 562);
        width[0x49] = 600;
        boundingBoxes[0x49] = new Rectangle(96, 0, 408, 562);
        width[0xcd] = 600;
        boundingBoxes[0xcd] = new Rectangle(96, 0, 408, 805);
        width[0xce] = 600;
        boundingBoxes[0xce] = new Rectangle(96, 0, 408, 787);
        width[0xcf] = 600;
        boundingBoxes[0xcf] = new Rectangle(96, 0, 408, 753);
        width[0xcc] = 600;
        boundingBoxes[0xcc] = new Rectangle(96, 0, 408, 805);
        width[0x4a] = 600;
        boundingBoxes[0x4a] = new Rectangle(34, -18, 532, 580);
        width[0x4b] = 600;
        boundingBoxes[0x4b] = new Rectangle(38, 0, 544, 562);
        width[0x4c] = 600;
        boundingBoxes[0x4c] = new Rectangle(47, 0, 507, 562);

        width[0x4d] = 600;
        boundingBoxes[0x4d] = new Rectangle(4, 0, 592, 562);
        width[0x4e] = 600;
        boundingBoxes[0x4e] = new Rectangle(7, -13, 586, 575);
        width[0xd1] = 600;
        boundingBoxes[0xd1] = new Rectangle(7, -13, 586, 742);
        width[0x4f] = 600;
        boundingBoxes[0x4f] = new Rectangle(43, -18, 514, 598);
        width[0x8c] = 600;
        boundingBoxes[0x8c] = new Rectangle(7, 0, 560, 562);
        width[0xd3] = 600;
        boundingBoxes[0xd3] = new Rectangle(43, -18, 514, 823);
        width[0xd4] = 600;
        boundingBoxes[0xd4] = new Rectangle(43, -18, 514, 805);
        width[0xd6] = 600;
        boundingBoxes[0xd6] = new Rectangle(43, -18, 514, 771);
        width[0xd2] = 600;
        boundingBoxes[0xd2] = new Rectangle(43, -18, 514, 823);
        width[0xd8] = 600;
        boundingBoxes[0xd8] = new Rectangle(43, -80, 514, 709);
        width[0xd5] = 600;
        boundingBoxes[0xd5] = new Rectangle(43, -18, 514, 747);
        width[0x50] = 600;
        boundingBoxes[0x50] = new Rectangle(79, 0, 479, 562);
        width[0x51] = 600;
        boundingBoxes[0x51] = new Rectangle(43, -138, 514, 718);
        width[0x52] = 600;
        boundingBoxes[0x52] = new Rectangle(38, 0, 550, 562);
        width[0x53] = 600;
        boundingBoxes[0x53] = new Rectangle(72, -20, 457, 600);
        width[0x8a] = 600;
        boundingBoxes[0x8a] = new Rectangle(72, -20, 457, 822);

        width[0x54] = 600;
        boundingBoxes[0x54] = new Rectangle(38, 0, 525, 562);
        width[0xde] = 600;
        boundingBoxes[0xde] = new Rectangle(79, 0, 459, 562);
        width[0x55] = 600;
        boundingBoxes[0x55] = new Rectangle(17, -18, 566, 580);
        width[0xda] = 600;
        boundingBoxes[0xda] = new Rectangle(17, -18, 566, 823);
        width[0xdb] = 600;
        boundingBoxes[0xdb] = new Rectangle(17, -18, 566, 805);
        width[0xdc] = 600;
        boundingBoxes[0xdc] = new Rectangle(17, -18, 566, 771);
        width[0xd9] = 600;
        boundingBoxes[0xd9] = new Rectangle(17, -18, 566, 823);
        width[0x56] = 600;
        boundingBoxes[0x56] = new Rectangle(-4, -13, 608, 575);
        width[0x57] = 600;
        boundingBoxes[0x57] = new Rectangle(-3, -13, 606, 575);
        width[0x58] = 600;
        boundingBoxes[0x58] = new Rectangle(23, 0, 554, 562);
        width[0x59] = 600;
        boundingBoxes[0x59] = new Rectangle(24, 0, 552, 562);
        width[0xdd] = 600;
        boundingBoxes[0xdd] = new Rectangle(24, 0, 552, 805);
        width[0x9f] = 600;
        boundingBoxes[0x9f] = new Rectangle(24, 0, 552, 753);
        width[0x5a] = 600;
        boundingBoxes[0x5a] = new Rectangle(86, 0, 428, 562);
        width[0x8e] = 600;
        boundingBoxes[0x8e] = new Rectangle(86, 0, 428, 802);
        width[0x61] = 600;
        boundingBoxes[0x61] = new Rectangle(53, -15, 506, 456);
        width[0xe1] = 600;
        boundingBoxes[0xe1] = new Rectangle(53, -15, 506, 687);
        width[0xe2] = 600;
        boundingBoxes[0xe2] = new Rectangle(53, -15, 506, 669);
        width[0xb4] = 600;
        boundingBoxes[0xb4] = new Rectangle(242, 497, 227, 175);
        width[0xe4] = 600;
        boundingBoxes[0xe4] = new Rectangle(53, -15, 506, 635);
        width[0xe6] = 600;
        boundingBoxes[0xe6] = new Rectangle(19, -15, 551, 456);
        width[0xe0] = 600;
        boundingBoxes[0xe0] = new Rectangle(53, -15, 506, 687);
        width[0x26] = 600;
        boundingBoxes[0x26] = new Rectangle(63, -15, 475, 558);
        width[0xe5] = 600;
        boundingBoxes[0xe5] = new Rectangle(53, -15, 506, 642);
        width[0x5e] = 600;
        boundingBoxes[0x5e] = new Rectangle(94, 354, 412, 268);
        width[0x7e] = 600;
        boundingBoxes[0x7e] = new Rectangle(63, 197, 477, 123);
        width[0x2a] = 600;
        boundingBoxes[0x2a] = new Rectangle(116, 257, 368, 350);
        width[0x40] = 600;
        boundingBoxes[0x40] = new Rectangle(77, -15, 456, 637);
        width[0xe3] = 600;
        boundingBoxes[0xe3] = new Rectangle(53, -15, 506, 621);
        width[0x62] = 600;
        boundingBoxes[0x62] = new Rectangle(14, -15, 561, 644);
        width[0x5c] = 600;
        boundingBoxes[0x5c] = new Rectangle(118, -80, 364, 709);
        width[0x7c] = 600;
        boundingBoxes[0x7c] = new Rectangle(275, -250, 51, 1000);
        width[0x7b] = 600;
        boundingBoxes[0x7b] = new Rectangle(182, -108, 255, 730);
        width[0x7d] = 600;
        boundingBoxes[0x7d] = new Rectangle(163, -108, 255, 730);
        width[0x5b] = 600;
        boundingBoxes[0x5b] = new Rectangle(269, -108, 173, 730);
        width[0x5d] = 600;
        boundingBoxes[0x5d] = new Rectangle(158, -108, 173, 730);

        width[0xa6] = 600;
        boundingBoxes[0xa6] = new Rectangle(275, -175, 51, 850);
        width[0x95] = 600;
        boundingBoxes[0x95] = new Rectangle(172, 130, 256, 253);
        width[0x63] = 600;
        boundingBoxes[0x63] = new Rectangle(66, -15, 463, 456);

        width[0xe7] = 600;
        boundingBoxes[0xe7] = new Rectangle(66, -151, 463, 592);
        width[0xb8] = 600;
        boundingBoxes[0xb8] = new Rectangle(224, -151, 138, 161);
        width[0xa2] = 600;
        boundingBoxes[0xa2] = new Rectangle(96, -49, 404, 663);
        width[0x88] = 600;
        boundingBoxes[0x88] = new Rectangle(124, 477, 352, 177);
        width[0x3a] = 600;
        boundingBoxes[0x3a] = new Rectangle(229, -15, 142, 400);
        width[0x2c] = 600;
        boundingBoxes[0x2c] = new Rectangle(181, -112, 163, 234);
        width[0xa9] = 600;
        boundingBoxes[0xa9] = new Rectangle(0, -18, 600, 598);
        width[0xa4] = 600;
        boundingBoxes[0xa4] = new Rectangle(73, 58, 454, 448);
        width[0x64] = 600;
        boundingBoxes[0x64] = new Rectangle(45, -15, 546, 644);
        width[0x86] = 600;
        boundingBoxes[0x86] = new Rectangle(141, -78, 318, 658);
        width[0x87] = 600;
        boundingBoxes[0x87] = new Rectangle(141, -78, 318, 658);
        width[0xb0] = 600;
        boundingBoxes[0xb0] = new Rectangle(123, 269, 354, 353);
        width[0xa8] = 600;
        boundingBoxes[0xa8] = new Rectangle(148, 537, 305, 103);
        width[0xf7] = 600;
        boundingBoxes[0xf7] = new Rectangle(87, 48, 426, 419);
        width[0x24] = 600;
        boundingBoxes[0x24] = new Rectangle(105, -126, 391, 788);


        width[0x65] = 600;
        boundingBoxes[0x65] = new Rectangle(66, -15, 482, 456);
        width[0xe9] = 600;
        boundingBoxes[0xe9] = new Rectangle(66, -15, 482, 687);
        width[0xea] = 600;
        boundingBoxes[0xea] = new Rectangle(66, -15, 482, 669);
        width[0xeb] = 600;
        boundingBoxes[0xeb] = new Rectangle(66, -15, 482, 635);
        width[0xe8] = 600;
        boundingBoxes[0xe8] = new Rectangle(66, -15, 482, 687);
        width[0x38] = 600;
        boundingBoxes[0x38] = new Rectangle(102, -15, 396, 637);
        width[0x85] = 600;
        boundingBoxes[0x85] = new Rectangle(37, -15, 526, 126);
        width[0x97] = 600;
        boundingBoxes[0x97] = new Rectangle(0, 231, 600, 54);
        width[0x96] = 600;
        boundingBoxes[0x96] = new Rectangle(75, 231, 450, 54);
        width[0x3d] = 600;
        boundingBoxes[0x3d] = new Rectangle(80, 138, 440, 238);
        width[0xf0] = 600;
        boundingBoxes[0xf0] = new Rectangle(62, -15, 476, 644);
        width[0x21] = 600;
        boundingBoxes[0x21] = new Rectangle(236, -15, 128, 587);
        width[0xa1] = 600;
        boundingBoxes[0xa1] = new Rectangle(236, -157, 128, 587);
        width[0x66] = 600;
        boundingBoxes[0x66] = new Rectangle(114, 0, 417, 629);

        width[0x35] = 600;
        boundingBoxes[0x35] = new Rectangle(92, -15, 405, 622);

        width[0x83] = 600;
        boundingBoxes[0x83] = new Rectangle(4, -143, 535, 765);
        width[0x34] = 600;
        boundingBoxes[0x34] = new Rectangle(78, 0, 422, 622);

        width[0x67] = 600;
        boundingBoxes[0x67] = new Rectangle(45, -157, 521, 598);
        width[0xdf] = 600;
        boundingBoxes[0xdf] = new Rectangle(48, -15, 540, 644);
        width[0x60] = 600;
        boundingBoxes[0x60] = new Rectangle(151, 497, 227, 175);
        width[0x3e] = 600;
        boundingBoxes[0x3e] = new Rectangle(66, 42, 478, 430);
        width[0xab] = 600;
        boundingBoxes[0xab] = new Rectangle(37, 70, 526, 376);
        width[0xbb] = 600;
        boundingBoxes[0xbb] = new Rectangle(37, 70, 526, 376);
        width[0x8b] = 600;
        boundingBoxes[0x8b] = new Rectangle(149, 70, 302, 376);
        width[0x9b] = 600;
        boundingBoxes[0x9b] = new Rectangle(149, 70, 302, 376);
        width[0x68] = 600;
        boundingBoxes[0x68] = new Rectangle(18, 0, 564, 629);

        width[0x2d] = 600;
        boundingBoxes[0x2d] = new Rectangle(103, 231, 394, 54);
        width[0x69] = 600;
        boundingBoxes[0x69] = new Rectangle(95, 0, 410, 657);
        width[0xed] = 600;
        boundingBoxes[0xed] = new Rectangle(95, 0, 410, 672);
        width[0xee] = 600;
        boundingBoxes[0xee] = new Rectangle(94, 0, 411, 654);
        width[0xef] = 600;
        boundingBoxes[0xef] = new Rectangle(95, 0, 410, 620);
        width[0xec] = 600;
        boundingBoxes[0xec] = new Rectangle(95, 0, 410, 672);
        width[0x6a] = 600;
        boundingBoxes[0x6a] = new Rectangle(82, -157, 328, 814);
        width[0x6b] = 600;
        boundingBoxes[0x6b] = new Rectangle(43, 0, 537, 629);
        width[0x6c] = 600;
        boundingBoxes[0x6c] = new Rectangle(95, 0, 410, 629);
        width[0x3c] = 600;
        boundingBoxes[0x3c] = new Rectangle(41, 42, 478, 430);
        width[0xac] = 600;
        boundingBoxes[0xac] = new Rectangle(87, 108, 426, 261);

        width[0x6d] = 600;
        boundingBoxes[0x6d] = new Rectangle(-5, 0, 610, 441);
        width[0xaf] = 600;
        boundingBoxes[0xaf] = new Rectangle(120, 525, 360, 40);

        width[0xb5] = 600;
        boundingBoxes[0xb5] = new Rectangle(21, -157, 541, 583);
        width[0xd7] = 600;
        boundingBoxes[0xd7] = new Rectangle(87, 43, 428, 427);
        width[0x6e] = 600;
        boundingBoxes[0x6e] = new Rectangle(26, 0, 549, 441);
        width[0x39] = 600;
        boundingBoxes[0x39] = new Rectangle(96, -15, 393, 637);
        width[0xf1] = 600;
        boundingBoxes[0xf1] = new Rectangle(26, 0, 549, 606);
        width[0x23] = 600;
        boundingBoxes[0x23] = new Rectangle(93, -32, 414, 671);
        width[0x6f] = 600;
        boundingBoxes[0x6f] = new Rectangle(62, -15, 476, 456);
        width[0xf3] = 600;
        boundingBoxes[0xf3] = new Rectangle(62, -15, 476, 687);
        width[0xf4] = 600;
        boundingBoxes[0xf4] = new Rectangle(62, -15, 476, 669);
        width[0xf6] = 600;
        boundingBoxes[0xf6] = new Rectangle(62, -15, 476, 635);
        width[0x9c] = 600;
        boundingBoxes[0x9c] = new Rectangle(19, -15, 540, 456);

        width[0xf2] = 600;
        boundingBoxes[0xf2] = new Rectangle(62, -15, 476, 687);
        width[0x31] = 600;
        boundingBoxes[0x31] = new Rectangle(96, 0, 409, 622);
        width[0xbd] = 600;
        boundingBoxes[0xbd] = new Rectangle(0, -57, 611, 722);
        width[0xbc] = 600;
        boundingBoxes[0xbc] = new Rectangle(0, -57, 600, 722);
        width[0xb9] = 600;
        boundingBoxes[0xb9] = new Rectangle(172, 249, 256, 373);
        width[0xaa] = 600;
        boundingBoxes[0xaa] = new Rectangle(156, 249, 286, 331);
        width[0xba] = 600;
        boundingBoxes[0xba] = new Rectangle(157, 249, 286, 331);
        width[0xf8] = 600;
        boundingBoxes[0xf8] = new Rectangle(62, -80, 476, 586);
        width[0xf5] = 600;
        boundingBoxes[0xf5] = new Rectangle(62, -15, 476, 621);
        width[0x70] = 600;
        boundingBoxes[0x70] = new Rectangle(9, -157, 546, 598);
        width[0xb6] = 600;
        boundingBoxes[0xb6] = new Rectangle(50, -78, 461, 640);
        width[0x28] = 600;
        boundingBoxes[0x28] = new Rectangle(269, -108, 171, 730);
        width[0x29] = 600;
        boundingBoxes[0x29] = new Rectangle(160, -108, 171, 730);
        width[0x25] = 600;
        boundingBoxes[0x25] = new Rectangle(81, -15, 437, 637);
        width[0x2e] = 600;
        boundingBoxes[0x2e] = new Rectangle(229, -15, 142, 124);
        width[0xb7] = 600;
        boundingBoxes[0xb7] = new Rectangle(222, 189, 156, 138);
        width[0x89] = 600;
        boundingBoxes[0x89] = new Rectangle(3, -15, 597, 637);
        width[0x2b] = 600;
        boundingBoxes[0x2b] = new Rectangle(80, 44, 440, 426);
        width[0xb1] = 600;
        boundingBoxes[0xb1] = new Rectangle(87, 44, 426, 514);
        width[0x71] = 600;
        boundingBoxes[0x71] = new Rectangle(45, -157, 546, 598);
        width[0x3f] = 600;
        boundingBoxes[0x3f] = new Rectangle(129, -15, 363, 587);
        width[0xbf] = 600;
        boundingBoxes[0xbf] = new Rectangle(108, -157, 363, 587);
        width[0x22] = 600;
        boundingBoxes[0x22] = new Rectangle(187, 328, 226, 234);
        width[0x84] = 600;
        boundingBoxes[0x84] = new Rectangle(143, -134, 314, 234);
        width[0x93] = 600;
        boundingBoxes[0x93] = new Rectangle(143, 328, 328, 234);
        width[0x94] = 600;
        boundingBoxes[0x94] = new Rectangle(143, 328, 314, 234);
        width[0x91] = 600;
        boundingBoxes[0x91] = new Rectangle(224, 328, 163, 234);
        width[0x92] = 600;
        boundingBoxes[0x92] = new Rectangle(213, 328, 163, 234);
        width[0x82] = 600;
        boundingBoxes[0x82] = new Rectangle(213, -134, 163, 234);
        width[0x27] = 600;
        boundingBoxes[0x27] = new Rectangle(259, 328, 82, 234);
        width[0x72] = 600;
        boundingBoxes[0x72] = new Rectangle(60, 0, 499, 441);
        width[0xae] = 600;
        boundingBoxes[0xae] = new Rectangle(0, -18, 600, 598);

        width[0x73] = 600;
        boundingBoxes[0x73] = new Rectangle(80, -15, 433, 456);
        width[0x9a] = 600;
        boundingBoxes[0x9a] = new Rectangle(80, -15, 433, 684);

        width[0xa7] = 600;
        boundingBoxes[0xa7] = new Rectangle(113, -78, 375, 658);
        width[0x3b] = 600;
        boundingBoxes[0x3b] = new Rectangle(181, -112, 190, 497);
        width[0x37] = 600;
        boundingBoxes[0x37] = new Rectangle(82, 0, 401, 607);
        width[0x36] = 600;
        boundingBoxes[0x36] = new Rectangle(111, -15, 386, 637);
        width[0x2f] = 600;
        boundingBoxes[0x2f] = new Rectangle(125, -80, 350, 709);
        width[0x20] = 600;
        boundingBoxes[0x20] = new Rectangle(0, 0, 0, 0);

        width[0xa3] = 600;
        boundingBoxes[0xa3] = new Rectangle(84, -21, 437, 632);
        width[0x74] = 600;
        boundingBoxes[0x74] = new Rectangle(87, -15, 443, 576);
        width[0xfe] = 600;
        boundingBoxes[0xfe] = new Rectangle(-6, -157, 561, 786);
        width[0x33] = 600;
        boundingBoxes[0x33] = new Rectangle(75, -15, 391, 637);
        width[0xbe] = 600;
        boundingBoxes[0xbe] = new Rectangle(8, -56, 585, 722);
        width[0xb3] = 600;
        boundingBoxes[0xb3] = new Rectangle(155, 240, 251, 382);
        width[0x98] = 600;
        boundingBoxes[0x98] = new Rectangle(105, 489, 398, 117);
        width[0x99] = 600;
        boundingBoxes[0x99] = new Rectangle(-23, 263, 646, 299);
        width[0x32] = 600;
        boundingBoxes[0x32] = new Rectangle(70, 0, 401, 622);
        width[0xb2] = 600;
        boundingBoxes[0xb2] = new Rectangle(177, 249, 247, 373);
        width[0x75] = 600;
        boundingBoxes[0x75] = new Rectangle(21, -15, 541, 441);
        width[0xfa] = 600;
        boundingBoxes[0xfa] = new Rectangle(21, -15, 541, 687);
        width[0xfb] = 600;
        boundingBoxes[0xfb] = new Rectangle(21, -15, 541, 669);
        width[0xfc] = 600;
        boundingBoxes[0xfc] = new Rectangle(21, -15, 541, 635);
        width[0xf9] = 600;
        boundingBoxes[0xf9] = new Rectangle(21, -15, 541, 687);
        width[0x5f] = 600;
        boundingBoxes[0x5f] = new Rectangle(0, -125, 600, 50);
        width[0x76] = 600;
        boundingBoxes[0x76] = new Rectangle(10, -10, 580, 436);
        width[0x77] = 600;
        boundingBoxes[0x77] = new Rectangle(-4, -10, 608, 436);
        width[0x78] = 600;
        boundingBoxes[0x78] = new Rectangle(20, 0, 560, 426);
        width[0x79] = 600;
        boundingBoxes[0x79] = new Rectangle(7, -157, 585, 583);
        width[0xfd] = 600;
        boundingBoxes[0xfd] = new Rectangle(7, -157, 585, 829);
        width[0xff] = 600;
        boundingBoxes[0xff] = new Rectangle(7, -157, 585, 777);
        width[0xa5] = 600;
        boundingBoxes[0xa5] = new Rectangle(26, 0, 548, 562);
        width[0x7a] = 600;
        boundingBoxes[0x7a] = new Rectangle(99, 0, 403, 426);
        width[0x9e] = 600;
        boundingBoxes[0x9e] = new Rectangle(99, 0, 403, 669);
        width[0x30] = 600;
        boundingBoxes[0x30] = new Rectangle(106, -15, 388, 637);

        familyNames = new java.util.HashSet();
        familyNames.add("Courier");

    }

    public Courier() {
        this(false);
    }

    public Courier(boolean enableKerning) {
        this.enableKerning = enableKerning;
    }

    public String getEncodingName() {
        return encoding;
    }

    public URI getFontURI() {
        return fontFileURI;
    }

    public String getFontName() {
        return fontName;
    }

    public String getEmbedFontName() {
        return getFontName();
    }

    public String getFullName() {
        return fullName;
    }

    public Set getFamilyNames() {
        return familyNames;
    }

    public FontType getFontType() {
        return FontType.TYPE1;
    }

    public int getAscender(int size) {
        return size * ascender;
    }

    public int getCapHeight(int size) {
        return size * capHeight;
    }

    public int getDescender(int size) {
        return size * descender;
    }

    public int getXHeight(int size) {
        return size * xHeight;
    }

    public int getUnderlinePosition(int size) {
        return size * underlinePosition;
    }

    public int getUnderlineThickness(int size) {
        return size * underlineThickness;
    }

    public int getFirstChar() {
        return firstChar;
    }

    public int getLastChar() {
        return lastChar;
    }

    public int getWidth(int i, int size) {
        return size * width[i];
    }

    public Rectangle getBoundingBox(int glyphIndex, int size) {
        Rectangle bbox = boundingBoxes[glyphIndex];
        return new Rectangle(bbox.x * size, bbox.y * size, bbox.width * size, bbox.height * size);
    }

    public int[] getWidths() {
        int[] arr = new int[getLastChar() - getFirstChar() + 1];
        System.arraycopy(width, getFirstChar(), arr, 0, getLastChar() - getFirstChar() + 1);
        return arr;
    }

    public boolean hasKerningInfo() {
        return false;
    }

    public java.util.Map getKerningInfo() {
        return java.util.Collections.EMPTY_MAP;
    }

    public char mapChar(char c) {
        notifyMapOperation();
        char d = mapping.mapChar(c);
        if (d != 0) {
            return d;
        } else {
            this.warnMissingGlyph(c);
            return Typeface.NOT_FOUND;
        }
    }

    public boolean hasChar(char c) {
        return (mapping.mapChar(c) > 0);
    }

}
