Package org.apache.fontbox.cff

Examples of org.apache.fontbox.cff.CFFFont$Mapping


        // todo: this is a fairly primitive mechanism and could be improved
        if (registryOrdering != null)
        {
            for (String substituteName : getSubstitutes("$" + registryOrdering))
            {
                CFFFont cff = getProvider().getCFFFont(substituteName);
                if (cff != null)
                {
                    if (cff instanceof CFFCIDFont)
                    {
                        return (CFFCIDFont)cff;
View Full Code Here


     *
     * @param postScriptName PostScript font name
     */
    public static CFFType1Font getCFFType1Font(String postScriptName)
    {
        CFFFont cff = getCFFFont(postScriptName);
        if (cff instanceof CFFType1Font)
        {
            return (CFFType1Font)cff;
        }
        return null;
View Full Code Here

     *
     * @param postScriptName PostScript font name
     */
    public static CFFCIDFont getCFFCIDFont(String postScriptName)
    {
        CFFFont cff = getCFFFont(postScriptName);
        if (cff instanceof CFFCIDFont)
        {
            return (CFFCIDFont)cff;
        }
        return null;
View Full Code Here

     * @param postScriptName PostScript font name
     */
    private static CFFFont getCFFFont(String postScriptName)
    {
        // first ask the font provider for the font
        CFFFont cff = getProvider().getCFFFont(postScriptName);
        if (cff == null)
        {
            // then try substitutes
            for (String substituteName : getSubstitutes(postScriptName))
            {
View Full Code Here

    }

    @Override
    public synchronized CFFFont getCFFFont(String postScriptName)
    {
        CFFFont cff = cffFonts.get(postScriptName);
        if (cff != null)
        {
            return cff;
        }
View Full Code Here

        if (bytes != null)
        {
            // embedded
            CFFParser cffParser = new CFFParser();
            boolean fontIsDamaged = false;
            CFFFont cffFont = null;
            try
            {
                cffFont = cffParser.parse(bytes).get(0);
            }
            catch (IOException e)
View Full Code Here

TOP

Related Classes of org.apache.fontbox.cff.CFFFont$Mapping

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.