How to use custom font in PDF | PHP FPDF Tutorial #5

preview_player
Показать описание
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.
we use makefont to convert ttf file into .z file and .php file which stores characters definition.

P.S: again, i made a mistake about the chapter number. :)
Рекомендации по теме
Комментарии
Автор

keren kali tutorialnya ... cool ... thanks very much

mhtutorialx
Автор

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?

marcinwiniarski
Автор

Great, and how would it be in external server?

lvargas
Автор

Can I use more than this three fonts you show in de tutorial. if yes, how to do it? Thanks

fermingarcia
Автор

the best easy tutorial can u let us know about how to add background color and background image to the pdf

keerthinaikr
Автор

One thing you dont explain, is where get italic versions

djava
Автор

How to set Lao font(Phesarath OT.ttf) help please

Dabd
Автор

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.

kaminskytone
Автор

new font is attached to pdf? Another pc without this font is readable?

emilie
Автор

Warning: Character Eth is missing how to change it

sadenlav
Автор

madam how to add urdu fonts in fpdf ??? please guide

nidaashraf
Автор

what is problem madam?

FREESCPT.TTF
'php' is not recognized as an internal or external command,
operable program or batch file.

MolSamorn
Автор

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...

shirishpatil