PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics.fonts.type1 Package / PDFType1Font Class / createWithAfmMetrics Method / createWithAfmMetrics(Stream,Stream,double,boolean) Method
afm data stream.
pfb data stream.
Font size.
If true, the font will be embedded in the PDF file.
Collapse All Expand All
In This Topic

createWithAfmMetrics(Stream,Stream,double,boolean) Method
In This Topic
Creates a Type1 font from a combination of .afm and .pfb files.
Syntax

    public static PDFType1Font createWithAfmMetrics(
       Stream metricsStream,
       Stream fontStream,
       double size,
       boolean embed
    )

#### Parameters

metricsStream
  afm data stream.
fontStream
  pfb data stream.
size
  Font size.
embed
  If true, the font will be embedded in the PDF file.

#### Return Value

A Type1 font Object.
See Also

#### Reference

PDFType1Font Class
PDFType1Font Members
Overload List

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.