Examples of MetricsFileReader


Examples of org.foray.font.format.MetricsFileReader

    private MetricsFile getMetricsFile() throws IOException, FontException {
        MetricsFile metricsFile = null;
        final URL serializedMetricsFile = this.getRegisteredFont()
                .getSerializedMetricsFile();
        if (serializedMetricsFile == null) {
            final MetricsFileReader reader = this.getRegisteredFont()
                    .getMetricsFileReader();
            metricsFile = reader.metricsFileFactory();
            if (metricsFile == null) {
                throw new FontException("Unknown Metric Format: "
                        + reader.getDescription());
            }
            if (metricsFile.getInternalEncoding() == null) {
                throw new FontException("Unusable Internal Encoding: "
                        + reader.getDescription());
            }
            return metricsFile;
        } else {
            try {
                metricsFile = deserializeMetricsFile();
View Full Code Here

Examples of org.foray.font.format.MetricsFileReader

        try {
            if (useSerialized) {
                rf = new RegisteredFont(this, fontName,
                        null, null, null, "none", null);
            } else {
                final MetricsFileReader metricFileReader = new MetricsFileReader(this, metricURL);
                rf = new RegisteredFont(this, fontName, null, metricFileReader, null, "none", null);
            }

        } catch (final FontException e) {
            this.logger.warn(e);
View Full Code Here

Examples of org.foray.font.format.MetricsFileReader

                fontFileReader = new FontFileReader(this, fontFileURL);
            } catch (final IOException e) {
                throw new FontException(e);
            }
        }
        MetricsFileReader metricsFileReader = null;
        if (metricsFileURL != null) {
            try {
                metricsFileReader = new MetricsFileReader(this, metricsFileURL);
            } catch (final IOException e) {
                throw new FontException(e);
            }
        }
        new RegisteredFont(this, fontID,
View Full Code Here

Examples of org.foray.font.format.MetricsFileReader

                fontFileReader = new FontFileReader(this, fontFileDescription, fontFileContents);
            } catch (final IOException e) {
                throw new FontException(e);
            }
        }
        MetricsFileReader metricsFileReader = null;
        if (metricsFileContents != null) {
            try {
                metricsFileReader = new MetricsFileReader(this, metricsFileDescription, metricsFileContents);
            } catch (final IOException e) {
                throw new FontException(e);
            }
        }
        new RegisteredFont(this, fontID,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.