Thread: Re: [Tuxpaint-devel] Chinese fonts (Page 2)
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
|
From: Song H. <So...@so...> - 2006-10-16 14:26:37
|
Dears, I fixed this problum of zh_tw.ttf, I don't known what differ from SDL, but I change the fontforge script to keep all orig font's properties. pls kindly to confirm the fixed, and put the zh_tw.ttf into tuxpaint 0.9.16 release, thanks~!! Best regards, song. ----- Original Message ----- From: "John Popplewell" <jo...@jo...> To: "Discussion list for Tux Paint developers" <tux...@li...> Sent: Saturday, October 14, 2006 11:28 PM Subject: Re: [Tuxpaint-devel] Chinese fonts > On Sat, Oct 14, 2006 at 04:12:19PM +0100, John Popplewell wrote: > > > <snip!> > > > I appreciate this. I cannot, of course, make the SDL packages revert to > > > an earlier version in Debian. So for Chinese to work in Debian, we have > > > to move forward starting with what's there now. > > Sure, I understand. > > > > For what it's worth, I've built similar versions to the ones in Debian: > > > > freetype-2.2.1 > > SDL_ttf-2.0.7 > > SDL_ttf-2.0.8 > > with this patch (so that SDL_ttf builds): > > http://www.freetype.org/freetype2/patches/SDL_ttf-2.0.7-noftinternals.patch > > > > and the problem with SDL_ttf-2.0.8 and the small zh_tw.ttf font remains. > > If I use the original zh_tw.ttf (13MB) it works fine. > > > > At least it's probably not a freetype problem :-) > > > An additional data-point. If I use the 'showfont' test program that > comes with SDL_ttf-2.0.8: > > $ showfont c:/windows/fonts/arial.ttf 32 "Hello world." > Font is generally 36 big, and string is 36 big > [displays correctly] > > $ showfont ../tuxpaint/fonts/locale/zh_tw.ttf 32 "Hello world." > Font is generally 1 big, and string is 1 big > [displays the top row of pixels only] > > regards, > John. > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Tuxpaint-devel mailing list > Tux...@li... > https://lists.sourceforge.net/lists/listinfo/tuxpaint-devel > |
|
From: John P. <jo...@jo...> - 2006-10-16 15:57:13
|
On Mon, Oct 16, 2006 at 10:26:23PM +0800, Song Huang wrote: > Dears, > > I fixed this problum of zh_tw.ttf, I don't known what differ from SDL, > but I change the fontforge script to keep all orig font's properties. > > pls kindly to confirm the fixed, and put the zh_tw.ttf into tuxpaint 0.9.16 > release, > thanks~!! Hi song, I can confirm that the problem is fixed on Windows using SDL_ttf-2.0.8 and freetype-2.2.1, regards, John. > > Best regards, > song. > > > ----- Original Message ----- > From: "John Popplewell" <jo...@jo...> > To: "Discussion list for Tux Paint developers" > <tux...@li...> > Sent: Saturday, October 14, 2006 11:28 PM > Subject: Re: [Tuxpaint-devel] Chinese fonts > > > > On Sat, Oct 14, 2006 at 04:12:19PM +0100, John Popplewell wrote: > > > > <snip!> > > > > I appreciate this. I cannot, of course, make the SDL packages revert > to > > > > an earlier version in Debian. So for Chinese to work in Debian, we > have > > > > to move forward starting with what's there now. > > > Sure, I understand. > > > > > > For what it's worth, I've built similar versions to the ones in Debian: > > > > > > freetype-2.2.1 > > > SDL_ttf-2.0.7 > > > SDL_ttf-2.0.8 > > > with this patch (so that SDL_ttf builds): > > > > http://www.freetype.org/freetype2/patches/SDL_ttf-2.0.7-noftinternals.patch > > > > > > and the problem with SDL_ttf-2.0.8 and the small zh_tw.ttf font remains. > > > If I use the original zh_tw.ttf (13MB) it works fine. > > > > > > At least it's probably not a freetype problem :-) > > > > > An additional data-point. If I use the 'showfont' test program that > > comes with SDL_ttf-2.0.8: > > > > $ showfont c:/windows/fonts/arial.ttf 32 "Hello world." > > Font is generally 36 big, and string is 36 big > > [displays correctly] > > > > $ showfont ../tuxpaint/fonts/locale/zh_tw.ttf 32 "Hello world." > > Font is generally 1 big, and string is 1 big > > [displays the top row of pixels only] > > > > regards, > > John. > > > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > Tuxpaint-devel mailing list > > Tux...@li... > > https://lists.sourceforge.net/lists/listinfo/tuxpaint-devel > > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Tuxpaint-devel mailing list > Tux...@li... > https://lists.sourceforge.net/lists/listinfo/tuxpaint-devel > |
|
From: Ben A. <sy...@sa...> - 2006-10-14 16:45:59
|
I've got it! It must be the subsetting procedure. Please fetch: ftp://cle.linux.org.tw/pub/fonts/wangfonts/wp010-05.ttf Then symlink zh_tw.ttf to it. The one-row-of-pixels problem is gone! Maybe we just need to alter our subsetting procedure to extract the font in such a way that SDL_ttf can accurately determine the height. Perhaps it does this by measuring one special character, a character which the subsetting procedure has omitted? Ben |
|
From: Ben A. <sy...@sa...> - 2006-10-14 18:36:06
|
Bill Kendrick wrote: > On Sat, Oct 14, 2006 at 04:28:57PM +0100, John Popplewell wrote: > >>> and the problem with SDL_ttf-2.0.8 and the small zh_tw.ttf font remains. >>> If I use the original zh_tw.ttf (13MB) it works fine. >>> > > So for now, it looks like on Debian Ben will simply recommend an > existing Traditional Chinese TTF, and not include the subset one that > I'm releasing with the source. > I will use ttf-arphic-uming. An alternative is ttf-arphic-ukai. I don't read Chinese, though. My daughter, however, reads a little, and we agree uming is easier to see because the script is plainer. I'll need someone who can actually read this stuff to try it out and see if it all looks OK, and then let me know. Ben |
|
From: Ben A. <sy...@sa...> - 2006-10-16 23:04:51
|
I *remember* the discussion I had with the Wesnoth developers about this now! It is a problem that was discovered at least a couple of years ago. I had a nagging suspicion I already knew what was wrong, but couldn't put my finger on why or where I knew of this. Ben John Popplewell wrote: > Just for the record, I got round to looking at the code for SDL_ttf and > this: > http://www.libsdl.org/cgi/viewvc.cgi?view=rev&revision=2304 > > causes the change in behavior we are seeing between 2.0.7 and 2.0.8 > > cheers, > John. > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Tuxpaint-devel mailing list > Tux...@li... > https://lists.sourceforge.net/lists/listinfo/tuxpaint-devel > |