From rm at mh-freiburg.de Sun Nov 10 15:56:12 2013 From: rm at mh-freiburg.de (R. Mattes) Date: Sun, 10 Nov 2013 16:56:12 +0100 Subject: [cl-pdf-devel] status of TrueType font support Message-ID: <20131110155117.M2122@mh-freiburg.de> Hello list, I just wanted to check the status of truetype integration via ttf-zpb. There was a patch posted to this list years ago and there is a git repository at https://github.com/archimag/cl-pdf but that repository lags behind the offical cl-pdf and quicklisp tracks the official one. Is there any chance of merging these changes into the official branch? TIA Ralf Mattes -- R. Mattes - Hochschule fuer Musik Freiburg rm at inm.mh-freiburg.de From marc.battyani at fractalconcept.com Sun Nov 10 19:41:22 2013 From: marc.battyani at fractalconcept.com (Marc Battyani) Date: Sun, 10 Nov 2013 14:41:22 -0500 Subject: [cl-pdf-devel] Using zpb-ttf to load Unicode ttf files In-Reply-To: <20060302223301.GA26760@heslin.eclipse.co.uk> References: <20060302223301.GA26760@heslin.eclipse.co.uk> Message-ID: <527FE162.8030608@fractalconcept.com> Hi all, I apologize for the 7 years delay to add this into the cl-pdf repository! It's now committed and pushed into the official cl-pdf repository which is currently on github: https://github.com/mbattyani/cl-pdf BTW if you know about other stuff I forgot to add to cl-pdf/cl-typesetting please let me know. Marc On 3/2/06, 17:33, Peter Heslin wrote: > A couple of weeks ago, Zach Beane announced the release of his zpb-ttf > library for reading TrueType Unicode font files. cl-pdf already has > support for using these fonts, but the metrics have to be read in via > a "ufm" file, which has to be generated with a hacked version of > ttf2pt1 -- a less than ideal situation. > > So I tried to get zpb-ttf to load the ttf font metrics. I'll attach > the file I came up with, which now allows a pure Lisp solution to > using truetype fonts in cl-pdf. I've tested it on just a few fonts, > but it seems to work fine. > > Health warning: I don't have a deep understanding of all of the parts > of this code, much of which was munged around and adapted from various > parts of font-metrics.lisp. It would be good if someone else who > understands the issues were to review it. > > One thing I did notice is that zpb-ttf reports a different value for > the font's descender, as compared to the ufm file generated by > ttf2pt1. Also, I used zpb-ttf's line-gap for (leading font-metric), > but that's a guess. > > > > _______________________________________________ > cl-pdf-devel site list > cl-pdf-devel at common-lisp.net > http://common-lisp.net/mailman/listinfo/cl-pdf-devel -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc.battyani at fractalconcept.com Sun Nov 10 20:49:04 2013 From: marc.battyani at fractalconcept.com (Marc Battyani) Date: Sun, 10 Nov 2013 15:49:04 -0500 Subject: [cl-pdf-devel] Using zpb-ttf to load Unicode ttf files In-Reply-To: <20131110202620.M45245@mh-freiburg.de> References: <20060302223301.GA26760@heslin.eclipse.co.uk> <527FE162.8030608@fractalconcept.com> <20131110202620.M45245@mh-freiburg.de> Message-ID: <527FF140.3070605@fractalconcept.com> On 11/10/13, 15:30, R. Mattes wrote: > After your last mail I was abaout to format a patch but realized that > Peter's code doen't contain any licence info. So I was a bit reluctant > to submit a patch. Did you check with him? Cheers, and thanks a lot RalfD I guess that Peter is OK with the BSD license of cl-pdf. Anyway I always leave the contributors' Copyright in addition to the standard cl-pdf one when there is one. Technically it's probably a legal mess but I really doubt that anybody will ever be sued for using cl-pdf. BTW Peter is in the recipients of those emails and is welcome to comment on that if needed. Cheers, Marc From marc.battyani at fractalconcept.com Sun Nov 10 17:33:03 2013 From: marc.battyani at fractalconcept.com (Marc Battyani) Date: Sun, 10 Nov 2013 12:33:03 -0500 Subject: [cl-pdf-devel] status of TrueType font support In-Reply-To: <20131110155117.M2122@mh-freiburg.de> References: <20131110155117.M2122@mh-freiburg.de> Message-ID: <527FC34F.2050708@fractalconcept.com> On 11/10/13, 10:56, R. Mattes wrote: > Hello list, > > I just wanted to check the status of truetype integration > via ttf-zpb. There was a patch posted to this list years ago > and there is a git repository at https://github.com/archimag/cl-pdf > but that repository lags behind the offical cl-pdf and quicklisp > tracks the official one. Is there any chance of merging these changes > into the official branch? Hi Ralf, The official cl-pdf repository is there: https://github.com/mbattyani/cl-pdf I'm ready to merge this patch as well as any other useful features so feel free to submit patches. Marc > > TIA Ralf Mattes > > -- > R. Mattes - > Hochschule fuer Musik Freiburg > rm at inm.mh-freiburg.de > > From rm at mh-freiburg.de Sun Nov 10 20:30:45 2013 From: rm at mh-freiburg.de (R. Mattes) Date: Sun, 10 Nov 2013 21:30:45 +0100 Subject: [cl-pdf-devel] Using zpb-ttf to load Unicode ttf files In-Reply-To: <527FE162.8030608@fractalconcept.com> References: <20060302223301.GA26760@heslin.eclipse.co.uk> <527FE162.8030608@fractalconcept.com> Message-ID: <20131110202620.M45245@mh-freiburg.de> On Sun, 10 Nov 2013 14:41:22 -0500, Marc Battyani wrote > Hi all, Hi Marc, > I apologize for the 7 years delay to add this into the cl-pdf repository! > > It's now committed and pushed into the official cl-pdf repository which is currently on github: > https://github.com/mbattyani/cl-pdf After your last mail I was abaout to format a patch but realized that Peter's code doen't contain any licence info. So I was a bit reluctant to submit a patch. Did you check with him? Cheers, and thanks a lot RalfD > BTW if you know about other stuff I forgot to add to cl-pdf/cl-typesetting please let me know. > > Marc > > On 3/2/06, 17:33, Peter Heslin wrote: > A couple of weeks ago, Zach Beane announced the release of his zpb-ttf library for reading TrueType Unicode font files. cl-pdf already has support for using these fonts, but the metrics have to be read in via a "ufm" file, which has to be generated with a hacked version of ttf2pt1 -- a less than ideal situation. So I tried to get zpb-ttf to load the ttf font metrics. I'll attach the file I came up with, which now allows a pure Lisp solution to using truetype fonts in cl-pdf. I've tested it on just a few fonts, but it seems to work fine. Health warning: I don't have a deep understanding of all of the parts of this code, much of which was munged around and adapted from various parts of font-metrics.lisp. It would be good if someone else who understands the issues were to review it. One thing I did notice is that zpb-ttf reports a different value for the font's descender, as compared to the ufm file generated by ttf2pt1. Also, I used zpb-ttf's line-gap for (leading font-metric), but that's a guess. > >_______________________________________________ cl-pdf-devel site list cl-pdf-devel at common-lisp.net http://common-lisp.net/mailman/listinfo/cl-pdf-devel -- R. Mattes - Hochschule fuer Musik Freiburg rm at inm.mh-freiburg.de