set custom font to Mpdf Plugin V.8~ for php

Поділитися
Вставка
  • Опубліковано 19 вер 2024
  • 1- upload ttf fonts in path /vendor/mpdf/mpdf/ttfonts
    2-define custom font inside "fontdata" object in path /vendor/mpdf/mpdf/src/Config/FontVariables,php
    3-change font family to new custom font name
    make sure your font type TTF
    anyconv.com/ot...

КОМЕНТАРІ • 11

  • @smitvasava6709
    @smitvasava6709 Рік тому +1

    Thank you soo much it worked for me.

  • @JuanLopez-y7x6j
    @JuanLopez-y7x6j Рік тому

    Thank you , you saved me! 🖖🏼

  • @ValentinDragan
    @ValentinDragan 11 місяців тому +1

    Nice approach , but some people do not like to touch the vendor files while working with composer.
    There is a way for adding custom fonts, but this is not what I was looking for.

  • @hadifirouzi7202
    @hadifirouzi7202 Рік тому

    Thank you it's work correctly.🙋‍♂

  • @crydiamoryan
    @crydiamoryan Рік тому +1

    I could do it after removing 'useOTL' and 'useKashida'

  • @behappey8494
    @behappey8494 Рік тому

    can please source code and thanks in advance ,i use laravel 9 but show me this message
    Class "Mccarlosen\LaravelMpdf\LaravelMpdfServiceProvider" not found

  • @tityalorn399
    @tityalorn399 2 роки тому

    I have follow your step but not work. what i am wrong?

    • @coding4every1
      @coding4every1  Рік тому

      make sure your font type is ttf type not otf , you can convert it online like : anyconv.com/otf-to-ttf-converter/

  • @LINUXUPDATE
    @LINUXUPDATE Рік тому

    لايعمل مع تنفيذ جميع الخطوات

    • @coding4every1
      @coding4every1  Рік тому

      تأكد من نوع الخط .ttf لو النوع otf يمكنك تحويله بسهولة عن طريق مواقع اونلان مثل
      anyconv.com/otf-to-ttf-converter