Fpdf and Greek Characters
-
Hello,
I have a gift card plugin and I need to install manually the Greek fonts which is not supported by default. So far I created with “makefont” function two versions of my font with .ttf and .z extensions.
I manually upload them to the appropriate directory. Now, to anyone who may know, I need to to call the “addfont” and “setfont” functions.
This is what I do but no matter what, the default font “Arial” stays the same.
I have no experience on this. Perhaps there is something wrong with how I add the code. The fonts are called “AkaAcidDosisRegular” and I must add the following lines:$pdf->AddFont(‘customfamily’,”,’customfont’); $pdf->SetFont(‘customfont’,’x’,16);
Can you help me? Where I must enter those two lines? In the beginning or at the end of the document? It is a find and replace action?
I know it is a tough question but the answer is crucial to me, since it is the only plugin for non – woocommerce stores, that does this job.
The whole code can be found here in .doc format
- The topic ‘Fpdf and Greek Characters’ is closed to new replies.