Package org.axsl.font

Examples of org.axsl.font.FontConsumer


        } catch (final ParserConfigurationException e) {
            throw new FOrayException(e);
        }
        final FOTreeBuilder foTree = this.treeServer.makeFoTree();
        final FontServer fontServer = this.treeServer.getFontServer();
        final FontConsumer fontConsumer = fontServer.makeFontConsumer();
        foTree.setFontConsumer(fontConsumer);
        xmlReader.setContentHandler(foTree);
        try {
            xmlReader.parse(foInputSource);
        } catch (final IOException e) {
View Full Code Here


        }
        EagerLineBreaker lb = this.layout.getLineBreaker();
        if (lb == null) {
            final AreaTree areaTree = lineArea.getAreaTree();
            final TextServer textServer = areaTree.getTextServer();
            final FontConsumer fontConsumer = areaTree.getFontConsumer();
            lb = textServer.provideEagerLineBreaker(null, this.layout,
                    fontConsumer);
        }
        int status = 0;
        final FoLineText contextAware = lineText.getContextWrapper(
View Full Code Here

            throws AreaTreeException {
        EagerLineBreaker lb = this.layout.getLineBreaker();
        if (lb == null) {
            final AreaTree areaTree = lineArea.getAreaTree();
            final TextServer textServer = areaTree.getTextServer();
            final FontConsumer fontConsumer = areaTree.getFontConsumer();
            lb = textServer.provideEagerLineBreaker(null,
                    this.layout, fontConsumer);
        }
        int status = 0;
        final FoLineNonText contextAware = nonText.getContextWrapper(
View Full Code Here

                 * so what we do here doesn't matter much. We set the first
                 * char to space so that virtually any font should pass the
                 * test. */
                firstChar = ' ';
            }
            final FontConsumer fontConsumer = this.getFontConsumer();
            final Font.SelectionStrategy strategy =
                    this.traitFontSelectionStrategy(context);
            final String[] fontFamily = this.traitFontFamily(context);
            final Font.Style style = this.traitFontStyle(context);
            final Font.Weight weight = this.traitFontWeight(context);
            final Font.Variant variant = this.traitFontVariant(context);
            final Font.Stretch stretch = this.traitFontStretch(context);
            final int size = this.traitFontSize(context);
            resolvedFont = fontConsumer.selectFontXsl(strategy, fontFamily,
                    style, weight, variant, stretch, size, firstChar);
        } catch (final FontException e) {
            this.getLogger().error("Error creating Font.\n"
                    + this.getContextMessage());
        }
View Full Code Here

TOP

Related Classes of org.axsl.font.FontConsumer

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.