Re: [Fonts]FreeType 2 backend submitted for inclusion in CVS
Hi Juliusz, Tested with Chinese fonts in Red Hat 7.3, here are the problems I met: * m and p spacings don't work, get_metrics can finish loading, then xfs will crash, hasn't called get_glyphs yet. * c spacing works but some dirties blow each characters, following patch fix it: --- ftfuncs.c.origWed Jun 19 17:50:50 2002 +++ ftfuncs.cWed Jun 19 17:52:42 2002 @@ -579,8 +579,8 @@ bitmap = face-face-glyph-bitmap; if(hasMetrics) { -wd = tgp-metrics.rightSideBearing; -ht = tgp-metrics.ascent; +wd = tgp-metrics.rightSideBearing - tgp-metrics.leftSideBearing; +ht = tgp-metrics.ascent + tgp-metrics.descent; } else { wd = bitmap-width; ht = bitmap-rows; * above patch will also allow font size changing, otherwise you can only use default font size. Regards, James H. Cloos Jr. wrote: Mike == Mike A Harris [EMAIL PROTECTED] writes: Mike I'm considering the possiblity of including all or some of this Mike in my XFree86 packaging in rawhide. I suggest you do so. Mike How well do you think it would fit into 4.2.0? I'm using it right now on a suse 7.3 box with their rpm modified to patch in Juliusz' backend. It works very well. The only note is that if the current version had not added CID support, I'd suggest patching the type1 backend like so: diff -uNrdb Type1.bak/t1funcs.c Type1/t1funcs.c --- Type1.bak/t1funcs.cMon Feb 18 15:51:57 2002 +++ Type1/t1funcs.cTue Jun 18 18:44:26 2002 @@ -1443,10 +1443,6 @@ #else static FontRendererRec renderers[] = { #endif - { .pfa, 4, NULL, Type1OpenScalable, -NULL, Type1GetInfoScalable, 0, CAPABILITIES }, - { .pfb, 4, NULL, Type1OpenScalable, -NULL, Type1GetInfoScalable, 0, CAPABILITIES } }; #ifdef BUILDCID @@ -1464,17 +1460,7 @@ void Type1RegisterFontFileFunctions(void) { -int i; - -#ifdef BUILDCID -Type1InitStdProps(); -for (i=0; i sizeof(Type1RendererInfo) / sizeof(FontRendererRec); i++) -FontFileRegisterRenderer(Type1RendererInfo[i]); -#else -T1InitStdProps(); -for (i=0; i sizeof(renderers) / sizeof(FontRendererRec); i++) -FontFileRegisterRenderer(renderers[i]); -#endif + /* null function */ } int That will ensure that the old type1 backend only serves the cid fonts. If the ft2 backend does now include cid support, the patch would need to exclude the old type1 backend from libfont.{a,so}. Also, this patch may be a reasonable addition to the ft2 backend: diff -udNrb xc.old/lib/font/FreeType/ftfuncs.c xc.new/lib/font/FreeType/ftfuncs.c --- xc.old/lib/font/FreeType/ftfuncs.c Tue Apr 16 22:25:38 2002 +++ xc.new/lib/font/FreeType/ftfuncs.c Tue Jun 18 18:49:31 2002 @@ -1739,6 +1739,10 @@ FreeTypeGetInfoScalable, 0, CAPABILITIES}, {.PFB, 4, 0, FreeTypeOpenScalable, 0, FreeTypeGetInfoScalable, 0, CAPABILITIES}, +{.pfr, 4, 0, FreeTypeOpenScalable, 0, + FreeTypeGetInfoScalable, 0, CAPABILITIES}, +{.PFR, 4, 0, FreeTypeOpenScalable, 0, + FreeTypeGetInfoScalable, 0, CAPABILITIES}, }; static int num_renderers = sizeof(renderers) / sizeof(renderers[0]); given that ft2 now supports pfr0 fonts. -JimC ___ Fonts mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/fonts -- Yu Shao Red Hat Asia-Pacific +61 7 3872 4835 Legal: http://apac.redhat.com/disclaimer ___ Fonts mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/fonts
[Fonts]FreeType 2 backend submitted for inclusion in CVS
Dear all, I've just submitted the latest version of the FreeType 2 backend and the latest mkfontscale for inclusion into CVS. For XFree86 members, they're available as patches 5305 through 5308; they are no longer available from my web page. Many thanks to all who helped with development and testing, and to the FreeType authors for their willingness to uglify their code in order to make my life easier. Regards, Juliusz ___ Fonts mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/fonts
Re: [Fonts]FreeType 2 backend submitted for inclusion in CVS
On 18 Jun 2002, Juliusz Chroboczek wrote: Date: 18 Jun 2002 16:06:15 +0200 From: Juliusz Chroboczek [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii List-Id: XFree86 Font List fonts.XFree86.Org Subject: [Fonts]FreeType 2 backend submitted for inclusion in CVS Dear all, I've just submitted the latest version of the FreeType 2 backend and the latest mkfontscale for inclusion into CVS. For XFree86 members, they're available as patches 5305 through 5308; they are no longer available from my web page. Fantastic! I look forward to testing out the new bits. Many thanks to all who helped with development and testing, and to the FreeType authors for their willingness to uglify their code in order to make my life easier. And a big thanks to you Juliusz for doing all of this work. It is going to make a big difference for many users. I'm considering the possiblity of including all or some of this in my XFree86 packaging in rawhide. How well do you think it would fit into 4.2.0? Thanks again, TTYL -- Mike A. Harris Shipping/mailing address: OS Systems Engineer 190 Pittsburgh Ave., Sault Ste. Marie, XFree86 maintainer Ontario, Canada, P6C 5B3 Red Hat Inc. http://www.redhat.com ftp://people.redhat.com/mharris ___ Fonts mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/fonts
Re: [Fonts]FreeType 2 backend submitted for inclusion in CVS
Mike == Mike A Harris [EMAIL PROTECTED] writes: Mike I'm considering the possiblity of including all or some of this Mike in my XFree86 packaging in rawhide. I suggest you do so. Mike How well do you think it would fit into 4.2.0? I'm using it right now on a suse 7.3 box with their rpm modified to patch in Juliusz' backend. It works very well. The only note is that if the current version had not added CID support, I'd suggest patching the type1 backend like so: diff -uNrdb Type1.bak/t1funcs.c Type1/t1funcs.c --- Type1.bak/t1funcs.c Mon Feb 18 15:51:57 2002 +++ Type1/t1funcs.c Tue Jun 18 18:44:26 2002 @@ -1443,10 +1443,6 @@ #else static FontRendererRec renderers[] = { #endif - { .pfa, 4, NULL, Type1OpenScalable, -NULL, Type1GetInfoScalable, 0, CAPABILITIES }, - { .pfb, 4, NULL, Type1OpenScalable, -NULL, Type1GetInfoScalable, 0, CAPABILITIES } }; #ifdef BUILDCID @@ -1464,17 +1460,7 @@ void Type1RegisterFontFileFunctions(void) { -int i; - -#ifdef BUILDCID -Type1InitStdProps(); -for (i=0; i sizeof(Type1RendererInfo) / sizeof(FontRendererRec); i++) -FontFileRegisterRenderer(Type1RendererInfo[i]); -#else -T1InitStdProps(); -for (i=0; i sizeof(renderers) / sizeof(FontRendererRec); i++) -FontFileRegisterRenderer(renderers[i]); -#endif + /* null function */ } int That will ensure that the old type1 backend only serves the cid fonts. If the ft2 backend does now include cid support, the patch would need to exclude the old type1 backend from libfont.{a,so}. Also, this patch may be a reasonable addition to the ft2 backend: diff -udNrb xc.old/lib/font/FreeType/ftfuncs.c xc.new/lib/font/FreeType/ftfuncs.c --- xc.old/lib/font/FreeType/ftfuncs.c Tue Apr 16 22:25:38 2002 +++ xc.new/lib/font/FreeType/ftfuncs.c Tue Jun 18 18:49:31 2002 @@ -1739,6 +1739,10 @@ FreeTypeGetInfoScalable, 0, CAPABILITIES}, {.PFB, 4, 0, FreeTypeOpenScalable, 0, FreeTypeGetInfoScalable, 0, CAPABILITIES}, +{.pfr, 4, 0, FreeTypeOpenScalable, 0, + FreeTypeGetInfoScalable, 0, CAPABILITIES}, +{.PFR, 4, 0, FreeTypeOpenScalable, 0, + FreeTypeGetInfoScalable, 0, CAPABILITIES}, }; static int num_renderers = sizeof(renderers) / sizeof(renderers[0]); given that ft2 now supports pfr0 fonts. -JimC ___ Fonts mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/fonts