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

ความคิดเห็น • 26

  • @sundarrajkarkyale5536
    @sundarrajkarkyale5536 6 หลายเดือนก่อน

    Thank you for this video!

  • @mhtutorialx
    @mhtutorialx 5 ปีที่แล้ว

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

  • @marcinwiniarski1905
    @marcinwiniarski1905 4 ปีที่แล้ว +2

    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?

  • @lvargas7306
    @lvargas7306 4 ปีที่แล้ว +2

    Great, and how would it be in external server?

  • @fermingarcia3322
    @fermingarcia3322 ปีที่แล้ว

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

  • @brunocaldas6647
    @brunocaldas6647 5 ปีที่แล้ว

    nice bro! you save me.

  • @keerthinaikr2014
    @keerthinaikr2014 6 ปีที่แล้ว

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

  • @kaminskytone
    @kaminskytone 4 ปีที่แล้ว +1

    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.

  • @enricolemuel6800
    @enricolemuel6800 5 ปีที่แล้ว

    Thank you!

  • @chaminduyasitha6201
    @chaminduyasitha6201 7 ปีที่แล้ว

    that's great

  • @3djava560
    @3djava560 3 ปีที่แล้ว

    One thing you dont explain, is where get italic versions

  • @tajihmokhtar956
    @tajihmokhtar956 6 ปีที่แล้ว

    Thank you

  • @Dab3d
    @Dab3d 6 ปีที่แล้ว

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

  • @MolSamorn
    @MolSamorn 3 ปีที่แล้ว

    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.

  • @sadenlav
    @sadenlav 6 ปีที่แล้ว

    Warning: Character Eth is missing how to change it

  • @JaimeVeraSobino
    @JaimeVeraSobino 5 ปีที่แล้ว

    thanx
    :)

  • @emilie1977
    @emilie1977 4 ปีที่แล้ว

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

    • @emilie1977
      @emilie1977 4 ปีที่แล้ว

      @@GemaCode thank you!

  • @nidaashraf5946
    @nidaashraf5946 2 ปีที่แล้ว

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

  • @osamaisam5853
    @osamaisam5853 6 ปีที่แล้ว

    How to setfont utf-8 arabic

  • @shirishpatil3384
    @shirishpatil3384 5 ปีที่แล้ว

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

  • @ranabrar2540
    @ranabrar2540 6 ปีที่แล้ว

    How add mangal font on tcpdf

    • @sunilsuwal4812
      @sunilsuwal4812 5 ปีที่แล้ว

      @@GemaCode How to add nepali unicode ?