MakeFont fontfile ?enc? ?embed? ?subset?
fontfilePath to the .ttf, .otf or .pfb file.
encName of the encoding to use. Default value: cp1252.
embedWhether to embed the font or not. Default value: true.
subsetWhether to subset the font or not. Default value: true.
$file in the .tcl file accordingly.
source "makefont.tcl"
namespace import makefont::*;
MakeFont 'C:\\Windows\\Fonts\\comic.ttf' cp1252
AddFont Comic "" comic_cp1252.tcl
AddFont Comic "B" comicbd_cp1252.tcl
MakeFont CevicheOne-Regular.ttf cp1252
AddFont CevicheOne "" CevicheOne-Regular_cp1252.tcl
AddPage
SetFont CevicheOne "' 45
Write 10 "Enjoy new fonts with TCLFPDF!'"
Output