command
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Nov 21, 2025
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Embedded Fonts Example
This sample shows how to embed a TrueType font from testdata/*.TTF and draw the Chinese greeting "你好,世界!" using the fluent PDF builder.
It demonstrates:
- loading a UTF-8 string into the document via a registered TrueType font
- registering the font once and reusing it through standard builder text operations
- writing the PDF with the default writer configuration
Download fonts
Download these fonts and place them in the testdata directory.
Run It
go run ./examples/fonts [output.pdf]
The program defaults to fonts.pdf in the current directory.
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.