How to use custom font in PDF | PHP FPDF Tutorial #5
ฝัง
- เผยแพร่เมื่อ 5 ก.ย. 2024
- welcome to the fifth chapter of PHP FPDF tutorial series.
in this short chapter, i'm about to demonstrate how to add custom font in our PDF document.
and we will also learn how to deal with font variants.
as an examples, we will use three different font families. Jokerman, Freescript, and Alien League second edition.
Alien League, however, will have two variants which is regular version, and italic version.
so here we have 2 font files for Alien League, one is regular the other is italic.
in FPDF, we cannot use the font's TTF file directly to add a new font.
so in FPDF directory, there is a script called makefont.php.
we use makefont to convert ttf file into .z file and .php file which stores characters definition.
Source Code : bit.ly/3hYdT0F
More tutorial on this series : goo.gl/TNqTN4 (PHP PDF Tutorial Series)
P.S: again, i made a mistake about the chapter number. :)
Thank you for this video!
keren kali tutorialnya ... cool ... thanks very much
hello, I get: "'php' is not recognized as an internal or external command,
operable program or batch file." in CMD. What am i doing wrong?
Great, and how would it be in external server?
Can I use more than this three fonts you show in de tutorial. if yes, how to do it? Thanks
nice bro! you save me.
the best easy tutorial can u let us know about how to add background color and background image to the pdf
This looks as if it might be the solution I'm looking for, but I had trouble following the video because of the loud, intrusive "music" background (or do I mean foreground) which distracts from the speech. Why do people do this? It's insane.
Thank you!
that's great
One thing you dont explain, is where get italic versions
Thank you
How to set Lao font(Phesarath OT.ttf) help please
what is problem madam?
C:\xampp\htdocs\font\customfont>php C:\xampp\htdocs\font\fpdf17\makefont\makefont.php FREESCPT.TTF
'php' is not recognized as an internal or external command,
operable program or batch file.
Warning: Character Eth is missing how to change it
thanx
:)
new font is attached to pdf? Another pc without this font is readable?
@@GemaCode thank you!
madam how to add urdu fonts in fpdf ??? please guide
How to setfont utf-8 arabic
hello Madam, I used your tutorial for generating pdf..thank you for such a good tutorial.
I also followed for the custom font....our local language is Hindi...when i tried converting font file shivaji05.ttf to shivaji05.php i am not getting the font reflected in the pdf. It shows the default font. Please help me...
How add mangal font on tcpdf
@@GemaCode How to add nepali unicode ?