Package org.foray.fotree.fo.prop

Examples of org.foray.fotree.fo.prop.PdFontFamily


     * @param context An object that knows how to resolve FO Tree context
     * issues.
     * @return The font-family property.
     */
    public String[] getFontFamily(final FObj fobj, final FoContext context) {
        PdFontFamily property = (PdFontFamily) getProperty(
                FoProperty.FONT_FAMILY);
        if (property != null) {
            return property.getValue(context, fobj);
        }
        // Try the shorthand
        final PdFont fontProperty = (PdFont) getProperty(FoProperty.FONT);
        if (fontProperty != null) {
            property = fontProperty.getFamily();
            return property.getValue(context, fobj);
        }
        return PdFontFamily.getValueNoInstance(context, fobj);
    }
View Full Code Here


        }
        case FONT: {
            return new PdFont(fobj, propertyFullName, attributeValue);
        }
        case FONT_FAMILY: {
            return new PdFontFamily(fobj, propertyFullName, attributeValue);
        }
        case FONT_SELECTION_STRATEGY: {
            return new PdFontSelectionStrategy(fobj, propertyFullName,
                    attributeValue);
        }
View Full Code Here

TOP

Related Classes of org.foray.fotree.fo.prop.PdFontFamily

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.