Muchas gracias, Alejandro,
looks promissing,
Harald
Am 25.01.2024 um 00:27 schrieb lamuzz...@gmail.com:
Harald,
take a look to tclfpdf (https://github.com/lamuzzachiodi/tclfpdf).
There are an example (utf8.tcl, pasted below) with chinese characters
using font simhei.ttf.
May be this help you.
Saludos,
Alejandro
#--- utf8.tcl -----------
package require tclfpdf
namespace import ::tclfpdf::*
Init;
AddPage;
# Add a Unicode font (uses UTF-8)
AddFont "DejaVu" "" "DejaVuSansCondensed.ttf" 1;
SetFont "DejaVu" "" 14;
Write 8 " -----
English: Hello World
Greek: Γειά σου κόσμος
Polish: Witaj świecie
Portuguese: Olá mundo
Spanish: Hola mundo
Russian: Здравствулте мир
Vietnamese: Xin chào thế giới
------";
Ln 10;
AddFont "simhei" "" "simhei.ttf" 1;
SetFont "simhei" "" 20;
Write 10 "Chinese: 你好世界";
#Select a standard font (uses windows-1252)
SetFont "Arial" "" 14;
Ln 10;
Write 5 "The file size of this PDF is only 16 KB.";
Output "utf8.pdf";
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 915 |
Nodes: | 10 (1 / 9) |
Uptime: | 47:35:33 |
Calls: | 12,171 |
Calls today: | 1 |
Files: | 186,522 |
Messages: | 2,234,631 |