Re: [Freeciv-Dev] (PR#39702) CJK fonts and gui-sdl
http://bugs.freeciv.org/Ticket/Display.html?id=39702 > On 9/18/07, Daniel Markstedt <[EMAIL PROTECTED]> wrote: > > http://bugs.freeciv.org/Ticket/Display.html?id=39702 > > > On 9/18/07, Christian Prochaska <[EMAIL PROTECTED]> wrote: > > > > http://bugs.freeciv.org/Ticket/Display.html?id=39702 > > > > > > [dmarks - Do 13. Sep 2007, 23:27:40]: > > > > > > Works beautifully! > > > > > > So, with CJK fonts working, could we start distributing them in svn? > > > It would be neat if gui-sdl could detect what locale it ran in and > > > select a compatible font automatically. :) > > > > > > ~Daniel > > > > > > > Locale dependent font selection should be possible. Some code for locale > > detection is already present in utility/support.c. Now I only need to > > know which specific additional fonts should be distributed for which > > locales. > > > > For zh_CN : fireflysung.ttf - > http://www.study-area.org/apt/firefly-font/ - Arphic Public License: > http://unifont.org/fontguide/fontlicenses/apl.txt > > For ja: sazanami-gothic.ttf - http://sourceforge.jp/projects/efont/ - > Licensing: > http://cvs.sourceforge.jp/cgi-bin/viewcvs.cgi/efont/sazanami/README?rev=1.5&view=auto > > For ko: UnDotum.ttf - http://kldp.net/projects/unfonts/ - GPL > > ~Daniel > Created a package with the fonts and their licenses: ftp://ftp.freeciv.org/freeciv/requirements/cjk_fonts.tar.bz2 ~Daniel ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
Re: [Freeciv-Dev] (PR#39702) CJK fonts and gui-sdl
http://bugs.freeciv.org/Ticket/Display.html?id=39702 > On 9/18/07, Christian Prochaska <[EMAIL PROTECTED]> wrote: > > http://bugs.freeciv.org/Ticket/Display.html?id=39702 > > > > [dmarks - Do 13. Sep 2007, 23:27:40]: > > > > Works beautifully! > > > > So, with CJK fonts working, could we start distributing them in svn? > > It would be neat if gui-sdl could detect what locale it ran in and > > select a compatible font automatically. :) > > > > ~Daniel > > > > Locale dependent font selection should be possible. Some code for locale > detection is already present in utility/support.c. Now I only need to > know which specific additional fonts should be distributed for which > locales. > For zh_CN : fireflysung.ttf - http://www.study-area.org/apt/firefly-font/ - Arphic Public License: http://unifont.org/fontguide/fontlicenses/apl.txt For ja: sazanami-gothic.ttf - http://sourceforge.jp/projects/efont/ - Licensing: http://cvs.sourceforge.jp/cgi-bin/viewcvs.cgi/efont/sazanami/README?rev=1.5&view=auto For ko: UnDotum.ttf - http://kldp.net/projects/unfonts/ - GPL ~Daniel ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
Re: [Freeciv-Dev] (PR#39702) CJK fonts and gui-sdl
http://bugs.freeciv.org/Ticket/Display.html?id=39702 > On 9/13/07, Christian Prochaska <[EMAIL PROTECTED]> wrote: > > http://bugs.freeciv.org/Ticket/Display.html?id=39702 > > > > [dmarks - Mi 12. Sep 2007, 23:46:48]: > > > > On 9/13/07, Daniel Markstedt <[EMAIL PROTECTED]> wrote: > > > > > > http://bugs.freeciv.org/Ticket/Display.html?id=39702 > > > > > > > CJK stands for 'Chinese Japanese Korean' and is a family of fonts that > > > contains all the Chinese ideographs plus Japanese and Korean letters. > > > These fonts doesn't seem to work with the SDL client at all. > > > Regardless of locale, all text is garbled beyond recognition and the > > > client crashes almost instantly. > > > > > > I tried the fonts Sazanami, Kochi-substitute, and Fireflysung. > > > Download links on this site: http://www.unifont.org/fontguide/ (click > > > on East Asia.) > > > > > > Note that a pure Korean font (without any Chinese Characters) works > > > fine. Am using UnDotum, available from above site. A pure Japanese > > > font might work too, but would be quite useless since Japanese writing > > > - unlike Korean - typically contains a large number of Chinese > > > Characters. > > > > > > Tested on OSX and WinXP with beta4-beta6+. > > > > > > ~Daniel > > > > > > > backtrace from OSX/beta6+ > > > > > > This turned out to be another bug in SDL_ttf: > > https://mail.gna.org/public/wesnoth-dev/2006-05/msg00085.html > > And it's fixed in Battle for Wesnoth, so I think we should just use > their patched version of SDL_ttf instead of our current one. Patch attached. > > > Works beautifully! So, with CJK fonts working, could we start distributing them in svn? It would be neat if gui-sdl could detect what locale it ran in and select a compatible font automatically. :) ~Daniel ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
Re: [Freeciv-Dev] (PR#39702) CJK fonts and gui-sdl
http://bugs.freeciv.org/Ticket/Display.html?id=39702 > On 9/13/07, Daniel Markstedt <[EMAIL PROTECTED]> wrote: > > http://bugs.freeciv.org/Ticket/Display.html?id=39702 > > > CJK stands for 'Chinese Japanese Korean' and is a family of fonts that > contains all the Chinese ideographs plus Japanese and Korean letters. > These fonts doesn't seem to work with the SDL client at all. > Regardless of locale, all text is garbled beyond recognition and the > client crashes almost instantly. > > I tried the fonts Sazanami, Kochi-substitute, and Fireflysung. > Download links on this site: http://www.unifont.org/fontguide/ (click > on East Asia.) > > Note that a pure Korean font (without any Chinese Characters) works > fine. Am using UnDotum, available from above site. A pure Japanese > font might work too, but would be quite useless since Japanese writing > - unlike Korean - typically contains a large number of Chinese > Characters. > > Tested on OSX and WinXP with beta4-beta6+. > > ~Daniel > backtrace from OSX/beta6+ backtrace Description: Binary data ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev