Package org.axsl.font

Examples of org.axsl.font.FontException


        if (tag.equals(FontFileReader.OPENTYPE_CFF_HEADER)) {
            this.fontFormat = Font.Format.OTF_CFF;
            this.fileFormat = FontFileReader.FILEFORMAT_OTF_CFF;
            return;
        }
        throw new FontException("Unsupported Font File Format: " + this.getDescription());
    }
View Full Code Here


     * @throws FontException If the count of char metrics does not match that documented in the metrics file.
     */
    private void endCharMetrics(final PsServer psServer) throws FontException {
        this.inCharMetrics = false;
        if (this.qtyCharMetricsFound != this.qtyCharMetricsExpected) {
            throw new FontException("Char Metrics count wrong.");
        }
        if (this.charSet == null) {
            /* We have been building the CharSet while parsing the char
             * metrics. */
            createCharSet(psServer);
View Full Code Here

     * Process a "C" keyword.
     * @throws FontException If the char metric token is not inside the char metrics section.
     */
    private void c() throws FontException {
        if (! this.inCharMetrics) {
            throw new FontException("Char Metric out of context.");
        }
        this.glyphIndex = getInteger();
        this.qtyCharMetricsFound ++;
    }
View Full Code Here

     * Process a "StartKernPairs" keyword.
     * @throws FontException If the token is not inside the kerning data section of the metrics file.
     */
    private void startKernPairs() throws FontException {
        if (! this.inKernData) {
            throw new FontException("Kern Pair out of context.");
        }
        this.inKernPairs = true;
        this.qtyKernPairsExpected = getInteger();
        this.kerning = new Kerning(this.qtyKernPairsExpected);
    }
View Full Code Here

     * @throws FontException If the count of kerning pairs does not match that documented in the metrics file.
     */
    private void endKernPairs() throws FontException {
        this.inKernPairs = false;
        if (this.qtyKernPairsFound != this.qtyKernPairsExpected) {
            throw new FontException("Kern pair count wrong.");
        }
    }
View Full Code Here

     * @param psServer The PostScript server.
     * @throws FontException If the kerning pair is not inside the kerning pairs section of the metrics file.
     */
    private void kpx(final PsServer psServer) throws FontException {
        if (! this.inKernPairs) {
            throw new FontException("Kern Pair out of context.");
        }
        String name1 = null;
        String name2 = null;
        if (this.currentTokenizer.hasMoreTokens()) {
            name1 = this.currentTokenizer.nextToken();
View Full Code Here

     * @throws FontException If the composite count does not match that documented in the metrics file.
     */
    private void endComposites() throws FontException {
        this.inComposites = false;
        if (this.qtyCompositesFound != this.qtyCompositesExpected) {
            throw new FontException("Composite count wrong.");
        }
    }
View Full Code Here

     * Process a "CC" keyword.
     * @throws FontException If the composite entry is not inside the composites section of the metrics file.
     */
    private void cc() throws FontException {
        if (! this.inComposites) {
            throw new FontException("Composite out of context.");
        }
        this.qtyCompositesFound ++;
        this.doneWithLine = true;
    }
View Full Code Here

        if (token.equalsIgnoreCase("true")) {
            return true;
        } else if (token.equalsIgnoreCase("false")) {
            return false;
        }
        throw new FontException("Invalid AFM boolean value: " + token);
    }
View Full Code Here

        if (firstChar < ' ') {
            /* Ignore control characters also. They will generally be end-of-
             * file indicators. */
            return;
        }
        throw new FontException("Invalid AFM key: " + keyword + ".");
    }
View Full Code Here

TOP

Related Classes of org.axsl.font.FontException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.