/** * Creates a new Type 1 font by the corresponding AFM/PFM and PFB files * @param metricsPath path to the AFM or PFM metrics file * @param binaryPath path to the contents of the PFB file * @return created {@link FontProgram} instance */ public static FontProgram createType1Font(String metricsPath, String binaryPath) throws java.io.IOException { return createType1Font(metricsPath, binaryPath, DEFAULT_CACHED); }
/** * Creates a new Type 1 font by the corresponding AFM/PFM and PFB files * @param metricsPath path to the AFM or PFM metrics file * @param binaryPath path to the contents of the PFB file * @return created {@link FontProgram} instance */ public static FontProgram createType1Font(String metricsPath, String binaryPath) throws java.io.IOException { return createType1Font(metricsPath, binaryPath, DEFAULT_CACHED); }
/** * Creates a new Type 1 font by the byte contents of the corresponding AFM/PFM and PFB files * @param afm the contents of the AFM or PFM metrics file * @param pfb the contents of the PFB file * @param cached specifies whether to cache the created {@link FontProgram} or not * @return created {@link FontProgram} instance */ public static FontProgram createType1Font(byte[] afm, byte[] pfb, boolean cached) throws java.io.IOException { return createType1Font(null, null, afm, pfb, cached); }
/** * Creates a new Type 1 font by the byte contents of the corresponding AFM/PFM and PFB files * @param afm the contents of the AFM or PFM metrics file * @param pfb the contents of the PFB file * @return created {@link FontProgram} instance */ public static FontProgram createType1Font(byte[] afm, byte[] pfb) throws java.io.IOException { return createType1Font(afm, pfb, DEFAULT_CACHED); }
/** * Creates a new Type 1 font by the byte contents of the corresponding AFM/PFM and PFB files * @param afm the contents of the AFM or PFM metrics file * @param pfb the contents of the PFB file * @param cached specifies whether to cache the created {@link FontProgram} or not * @return created {@link FontProgram} instance */ public static FontProgram createType1Font(byte[] afm, byte[] pfb, boolean cached) throws java.io.IOException { return createType1Font(null, null, afm, pfb, cached); }
/** * Creates a new Type 1 font by the byte contents of the corresponding AFM/PFM and PFB files * @param afm the contents of the AFM or PFM metrics file * @param pfb the contents of the PFB file * @return created {@link FontProgram} instance */ public static FontProgram createType1Font(byte[] afm, byte[] pfb) throws java.io.IOException { return createType1Font(afm, pfb, DEFAULT_CACHED); }
/** * Creates a new Type 1 font by the corresponding AFM/PFM and PFB files * @param metricsPath path to the AFM or PFM metrics file * @param binaryPath path to the contents of the PFB file * @param cached specifies whether to cache the created {@link FontProgram} or not * @return created {@link FontProgram} instance */ public static FontProgram createType1Font(String metricsPath, String binaryPath, boolean cached) throws java.io.IOException { return createType1Font(metricsPath, binaryPath, null, null, cached); }
/** * Creates a new Type 1 font by the corresponding AFM/PFM and PFB files * @param metricsPath path to the AFM or PFM metrics file * @param binaryPath path to the contents of the PFB file * @param cached specifies whether to cache the created {@link FontProgram} or not * @return created {@link FontProgram} instance */ public static FontProgram createType1Font(String metricsPath, String binaryPath, boolean cached) throws java.io.IOException { return createType1Font(metricsPath, binaryPath, null, null, cached); }