New font in PDF

Just starting out? Need help? Post your questions and find answers here.
Paradox
User
User
Posts: 23
Joined: Tue Dec 09, 2014 7:16 pm
Location: Brasil

New font in PDF

Post by Paradox »

I want to include new fonts in PDF, does anyone have an example of how to convert the source to the form below?

Code: Select all

      Symbol:
      Data.i  250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250
      Data.i  250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 333, 713, 500
      Data.i  549, 833, 778, 439, 333, 333, 500, 549, 250, 549, 250, 278, 500, 500, 500, 500, 500, 500
      Data.i  500, 500, 500, 500, 278, 278, 549, 549, 549, 444, 549, 722, 667, 722, 612, 611, 763, 603
      Data.i  722, 333, 631, 722, 686, 889, 722, 722, 768, 741, 556, 592, 611, 690, 439, 768, 645, 795
      Data.i  611, 333, 863, 333, 658, 500, 500, 631, 549, 549, 494, 439, 521, 411, 603, 329, 603, 549
      Data.i  549, 576, 521, 549, 549, 521, 549, 603, 439, 576, 713, 686, 493, 686, 494, 480, 200, 480
      Data.i  549,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0
      Data.i    0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0, 750, 620
      Data.i  247, 549, 167, 713, 500, 753, 753, 753, 753,1042, 987, 603, 987, 603, 400, 549, 411, 549
      Data.i  549, 713, 494, 460, 549, 549, 549, 549,1000, 603,1000, 658, 823, 686, 795, 987, 768, 768
      Data.i  823, 768, 768, 713, 713, 713, 713, 713, 713, 713, 768, 713, 790, 790, 890, 823, 549, 250
      Data.i  713, 603, 603,1042, 987, 603, 987, 603, 494, 329, 790, 790, 786, 713, 384, 384, 384, 384
      Data.i  384, 384, 494, 494, 494, 494,   0, 329, 274, 686, 686, 686, 384, 384, 384, 384, 384, 384
      Data.i  494, 494, 494,   0
[/b]
ynkrc
User
User
Posts: 55
Joined: Sat Sep 03, 2011 5:28 am

Re: New font in PDF

Post by ynkrc »

Paradox wrote:I want to include new fonts in PDF, does anyone have an example of how to convert the source to the form below?
......

I also Want To Know.
normeus
Enthusiast
Enthusiast
Posts: 470
Joined: Fri Apr 20, 2012 8:09 pm
Contact:

Re: New font in PDF

Post by normeus »

The option to add a font really works and you don't need any extra programming.

If you really want to define a font like:

Code: Select all

Symbol:
  Data.w  250, 250, 250,
Etc....
then read about this library which is PHP but looks like purebasic and you'll understand how those numbers are created:
( PurePDF is based on a PHP library)
http://www.fpdf.org/

fpdf.org does have a link to create your own font but first you have to know how those numbers are being used in PurePDF
There are some shortcuts being taken to create this tables in PurePDF but I think from the data this link creates you should be able to guess what to do:
( use ISO-8859-1 for encoding ) DONT FORGET ABOUT COPYRIGHT ISSUES WITH FONTS THAT ARE NOT YOURS
http://www.fpdf.org/makefont/

Norm.
google Translate;Makes my jokes fall flat- Fait mes blagues tombent à plat- Machte meine Witze verpuffen- Eh cumpari ci vo sunari
ynkrc
User
User
Posts: 55
Joined: Sat Sep 03, 2011 5:28 am

Re: New font in PDF

Post by ynkrc »

Let me Try.
normeus wrote:The option to add a font really works and you don't need any extra programming.
......
fpdf.org does have a link to create your own font but first you have to know how those numbers are being used in PurePDF
There are some shortcuts being taken to create this tables in PurePDF but I think from the data this link creates you should be able to guess what to do:
( use ISO-8859-1 for encoding ) DONT FORGET ABOUT COPYRIGHT ISSUES WITH FONTS THAT ARE NOT YOURS
http://www.fpdf.org/makefont/

Norm.
Post Reply