Page 1 of 1

New font in PDF

Posted: Thu May 21, 2015 9:09 pm
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]

Re: New font in PDF

Posted: Sat Jan 23, 2016 2:25 pm
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.

Re: New font in PDF

Posted: Sat Jan 23, 2016 7:43 pm
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.

Re: New font in PDF

Posted: Sun Jan 24, 2016 3:42 am
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.