php - TCPDF change font inside html -
I want the This classic , this is called the X font. For example: What do I want, first You will not be able to do this with writing only one HTML if you have a PDF If you want real HTML, you can use dopdf Notice You can use this many writing HTML () functions, but it will be difficult to keep your words correctly. .ttf font (3 files), and give them the TCPDF font folder.
$ pdf- & gt; Set font (); This works fine when using calls, but the problem is that I do not know the HTML which was later changed to
$ pdf-> Write html ();
$ pdf-> Setfont ('Dejaav Sans', '', 10); $ Html = '& lt; Table & gt; & Lt; TR & gt; & Lt; Td> & Lt; span style = "font-family: x;" & Gt; & Lt; / Span & gt; & Lt; / Td> & Lt; TD & gt; & Lt; / TD & gt; & Lt; TD & gt; & Lt; / TD & gt; & Lt; TD & gt; & Lt; / TD & gt; & Lt; / TR & gt; & Lt; / Table & gt; '; $ Pdf- & gt; Write HTML ($ HTML, true, false, true, false, '');
& lt;
& lt; inside td & gt; Span & gt; Exclude , using the dejavu sans font through all documents; tag, where I need the font X I tried to use the family of fonts - family but it does not work yet.
Comments
Post a Comment