Examples of CFFFont


Examples of org.apache.fontbox.cff.CFFFont

        // 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

Examples of org.apache.fontbox.cff.CFFFont

     *
     * @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

Examples of org.apache.fontbox.cff.CFFFont

     *
     * @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

Examples of org.apache.fontbox.cff.CFFFont

     * @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

Examples of org.apache.fontbox.cff.CFFFont

    }

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

Examples of org.apache.fontbox.cff.CFFFont

        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
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.