Adding Custom Fonts with FPDF2

  Рет қаралды 12,503

Chart Explorers

Chart Explorers

Күн бұрын

Пікірлер: 21
@Mesyv
@Mesyv 3 жыл бұрын
uni = True - this is for other (non English) letters as żźół (e.g. for Polish), otherwise this is not possible for fpdf to print those letters to PDF
@ChartExplorers
@ChartExplorers 3 жыл бұрын
Thanks @Smolag!
@SHONNER
@SHONNER 3 жыл бұрын
Glad I found this video. I'm learning FPDF2 right now.
@ibaha411
@ibaha411 Жыл бұрын
Can you make a video on how to use all these techniques in streamlit apps? Specifically, how to print a streamlit page to a pdf?
@gnfrost6724
@gnfrost6724 3 жыл бұрын
Thanks for helping out with my homework really appriciate it
@ChartExplorers
@ChartExplorers 3 жыл бұрын
Happy to help!
@superyaourght867
@superyaourght867 Жыл бұрын
Hey I'm on mac and I'm trying to set Baskerville italic font. I get this error message (please help me...) : 1 extra bytes in post.stringData array 1 extra bytes in post.stringData array 'kern' subtable longer than defined: 4142 bytes instead of 4144 bytes feat NOT subset; don't know how to subset; dropped meta NOT subset; don't know how to subset; dropped morx NOT subset; don't know how to subset; dropped Here is my add_font : self.add_font('Baskerville', 'I', '/System/Library/Fonts/Supplemental/Baskerville.ttc') and my set_font : self.set_font('Baskerville', "I", 15)
@ches_ter6842
@ches_ter6842 3 жыл бұрын
Hi dear All! How I can use it on external server? I mean, now everybody who use my webapp should do all the same steps on each own PC in order to be able generate pdf with properly fonts? And is there any way to output dynamicaly data from database to pdf? Thanks!
@lilberri5826
@lilberri5826 2 жыл бұрын
I tried using .OTF instead of .TTF and it did not work. Have you encountered this issue? If so, what was your solution? Thanks
@elishaamenuveve7113
@elishaamenuveve7113 2 жыл бұрын
I tried using ttc and I also had problems so I just downloaded a google font which was similar to the one I wanted.
@issamohammed3529
@issamohammed3529 2 жыл бұрын
i have issue with Arabic text u have any solution thank u
@cloud_computing
@cloud_computing 3 жыл бұрын
This is exactly what I was looking for.. Thank you
@CI30
@CI30 2 жыл бұрын
Hi this feature is NOT working now. It shows an error ="TTF. add_font() used to accept .pkl file as input, but for security reasons this feature is deprecated since v2.5.1 and has been removed in v2.5.3." So how can v resolve it?
@ChartExplorers
@ChartExplorers 2 жыл бұрын
Hi Karan, thanks for letting me know. I'll look into this and get back to you.
@TP-zo5zh
@TP-zo5zh Жыл бұрын
@@ChartExplorers any solution?
@rhysbennett1667
@rhysbennett1667 3 жыл бұрын
Thank you so much for the help, this is great
@ChartExplorers
@ChartExplorers 3 жыл бұрын
You're welcome!!
@MrMMVPP
@MrMMVPP Жыл бұрын
thanks :D
@shahzan525
@shahzan525 3 жыл бұрын
👍
@mayankgupta5906
@mayankgupta5906 2 жыл бұрын
Hey, i am facing issue in adding custom font for 'hindi' language. Can you please help me to generate pdf with currect font style. from fpdf import FPDF # save FPDF() class into a # variable pdf pdf = FPDF() #Add Custom Font pdf.add_font('Nirmala UI', '', r"C:\Windows\Fonts\Nirmala.ttf", uni=True) # Add a page pdf.add_page() pdf.set_font('Nirmala UI', '', 13.5) # create a cell pdf.cell(200, 10, txt = "जिन विद्यार्थियों को हिंदी विषयो से लगाव है", ln = 1, align = 'C') # save the pdf with name .pdf pdf.output("GFG.pdf")
@mahijain9211
@mahijain9211 Жыл бұрын
Hi, I am also trying to solve this problem but still now got nothing 😢
Format part of text in fpdf2
3:36
Chart Explorers
Рет қаралды 6 М.
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
Convert py to exe - from code to software
5:55
Python Simplified
Рет қаралды 483 М.
Create PDF with Python | Part 1
10:03
Chart Explorers
Рет қаралды 120 М.
How to generate Reports with Python automatically - 4: PDF directly
10:09
Lianne and Justin
Рет қаралды 37 М.
Introducing Clay - High Performance UI Layout in C
35:19
Nic Barker
Рет қаралды 69 М.
Mastering Python - Everything You Need To Know To Become a Python Master
16:02
Generate PDF with Python - ReportLab - Create Table - #2
10:07
How to Wrap Cell's Content in PDF | PHP FPDF Tutorial #7
10:38
Python OOP Tutorial 1: Classes and Instances
15:24
Corey Schafer
Рет қаралды 4,5 МЛН
How to Generate an Analytics Report (pdf) in Python!
49:15
Keith Galli
Рет қаралды 158 М.