lamuzzachiodi / tclfpdf

Port of tFPDF (PHP) by by Ian Back and Tycho Veltmeijer (modified version of FPDF by Olivier Plathey) to TCL
9 stars 1 forks source link

Error with Linux due to Windows specific environment variable #1

Closed PaulObermeier closed 1 year ago

PaulObermeier commented 1 year ago

The following line: variable SYSTEM_TTFONTS "[file normalize $::env(SystemRoot)/fonts]" should be changed to ex.:

variable SYSTEM_TTFONTS ""
if { $::tcl_platform(platform) eq "windows" } {
    set SYSTEM_TTFONTS "[file normalize $::env(SystemRoot)/fonts]"
}
lamuzzachiodi commented 1 year ago

No tested the defaults paths of Linux or Mac.