61
Quote:
black_beard wrote:
Thank you @panwac, just forget my part.
The download has been updated, version tcpdf_for_xoops: 1.01
It was a pleasure...
In ver. 1.01 I can see, the line no 26 in /Frameworks/tcpdf/config/tcpdf_config.php is double.
Quote:
define ('K_PATH_MAIN', XOOPS_ROOT_PATH.'/Frameworks/tcpdf/'); //panwac
define ('K_PATH_URL', XOOPS_URL.'/Frameworks/tcpdf/');
define ('K_PATH_URL', XOOPS_URL.'/Frameworks/tcpdf/');
should be replaced with
Quote:
define ('K_PATH_MAIN', XOOPS_ROOT_PATH.'/Frameworks/tcpdf/');
define ('K_PATH_URL', XOOPS_URL.'/Frameworks/tcpdf/');
And in my opinion, that's better to have default config file with the definitions of utf-fonts, not others.
![](https://xoops.org/uploads/smil42e7a65fee35d.gif)
So, I suggest to change in tcpdf_config.php lines from 47 to 66, e.g.:
Quote:
define ('PDF_FONT_NAME_SLOGAN', 'cid0cs');
define ('PDF_FONT_STYLE_SLOGAN', 'B');
define ('PDF_FONT_SIZE_SLOGAN', '8');
define ('PDF_FONT_NAME_TITLE', 'cid0cs');
define ('PDF_FONT_STYLE_TITLE', 'B');
define ('PDF_FONT_SIZE_TITLE', '12');
define ('PDF_FONT_NAME_SUB', 'cid0cs');
define ('PDF_FONT_STYLE_SUB', 'I');
define ('PDF_FONT_SIZE_SUB', '8');
define ('PDF_FONT_NAME_SUBSUB', 'cid0cs');
define ('PDF_FONT_STYLE_SUBSUB', '');
define ('PDF_FONT_SIZE_SUBSUB', '6');
define ('PDF_FONT_NAME_MAIN', 'cid0cs');
define ('PDF_FONT_SIZE_MAIN', 10);
define ('PDF_FONT_STYLE_MAIN','');
define ('PDF_FONT_NAME_DATA', 'cid0cs');
define ('PDF_FONT_STYLE_DATA','');
define ('PDF_FONT_SIZE_DATA', 8);
define ('PDF_FONT_MONOSPACED', 'cid0cs');
with
Quote:
define ('PDF_FONT_NAME_SLOGAN', 'dejavusansb');
define ('PDF_FONT_STYLE_SLOGAN', '');
define ('PDF_FONT_SIZE_SLOGAN', '8');
define ('PDF_FONT_NAME_TITLE', 'dejavusansb');
define ('PDF_FONT_STYLE_TITLE', '');
define ('PDF_FONT_SIZE_TITLE', '12');
define ('PDF_FONT_NAME_SUB', 'dejavusansi');
define ('PDF_FONT_STYLE_SUB', '');
define ('PDF_FONT_SIZE_SUB', '8');
define ('PDF_FONT_NAME_SUBSUB', 'dejavusans');
define ('PDF_FONT_STYLE_SUBSUB', '');
define ('PDF_FONT_SIZE_SUBSUB', '6');
define ('PDF_FONT_NAME_MAIN', 'dejavusans');
define ('PDF_FONT_SIZE_MAIN', 10);
define ('PDF_FONT_STYLE_MAIN','');
define ('PDF_FONT_NAME_DATA', 'dejavusansi');
define ('PDF_FONT_STYLE_DATA','');
define ('PDF_FONT_SIZE_DATA', 8);
define ('PDF_FONT_MONOSPACED', 'dejavusans');