tcpdf-laravel icon indicating copy to clipboard operation
tcpdf-laravel copied to clipboard

Custom font type

Open mayyola opened this issue 3 years ago • 1 comments

Hi there, I just find how to use the custom font type in the laravel, but I have no idea to fix it even though I review the comment below https://github.com/elibyy/tcpdf-laravel/issues/85

command: TCPDF_FONTS::addTTFfont('../fontpath/kaiu.ttf', 'TrueTypeUnicode'); exception: Error Class 'App\Http\Controllers\TCPDF_FONTS' not found

I found that the tools/tcpdf_addfont.php in the original tcpdf file and I don't know how to add in /vendor/elibyy /tcpdf-laravel and to use it.

any reply is appreciated thx.

mayyola avatar Oct 21 '21 00:10 mayyola

Sorry for the delayed response, this class is in the root namespace so you should add backslash before the class name e.g. \TCPDF_FONTS

elibyy avatar Nov 11 '21 04:11 elibyy