* Embed a font for use in the document. * * Convenience method that delegates to `pdf.fonts.embed()`. * * @param data - Font data (TTF, OTF, or Type1) * @param options - Embedding options * @returns EmbeddedFont instance for encoding text * @throws {Error} If font data is invali
(data: Uint8Array, options?: EmbedFontOptions)
| 2058 | * @throws {Error} If font data is invalid or unsupported format |
| 2059 | */ |
| 2060 | embedFont(data: Uint8Array, options?: EmbedFontOptions): EmbeddedFont { |
| 2061 | return this.fonts.embed(data, options); |
| 2062 | } |
| 2063 | |
| 2064 | /** |
| 2065 | * Get the reference for an embedded font. |
no test coverage detected