Documentation ¶
Overview ¶
Package embed provides convenience functions to embed fonts into a PDF file.
The package supports the following font types:
- OpenType fonts (.otf files)
- TrueType fonts (.ttf files)
- Type 1 fonts (.pfa or .pfb files, optionally with the corresponding .afm files)
Index ¶
- func OpenTypeFile(w pdf.Putter, fname string, opt *font.Options) (font.Layouter, error)
- func OpenTypeFont(w pdf.Putter, info *sfnt.Font, opt *font.Options) (font.Layouter, error)
- func Type1File(w pdf.Putter, psname, afmname string, opt *font.Options) (font.Layouter, error)
- func Type1Font(w pdf.Putter, psFont *pst1.Font, metrics *afm.Metrics, opt *font.Options) (font.Layouter, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenTypeFile ¶
OpenTypeFile loads and embeds an OpenType/TrueType font.
func OpenTypeFont ¶
OpenTypeFont embeds an OpenType/TrueType font.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.