At fontwrapper-ft.cc line 246, should add these codes: //----------------- //deallocate memory FT_Done_Face(face); FT_Done_FreeType(library); //-----------------
Let this game support multibyte string is more compex than I think. pango+fontconfig is a good way. :) 2011/4/14 DCSS Bug Tracker <man...@crawl.develz.org>: > > A NOTE has been added by KiloByte. > ============================================================================ > https://crawl.develz.org/mantis/view.php?id=1668 > ============================================================================ > Reported By: noword > Assigned To: > ============================================================================ > Project: DCSS > Product Branch: 0.7 stable branch > Issue ID: 1668 > ---------------------------------------------------------------------------- > Category: Bug Report > Reproducibility: N/A > Severity: minor > Status: new > ============================================================================ > Date Submitted: 2010-06-02 05:02 CEST > Last Modified: 2011-04-14 02:10 CEST > ============================================================================ > Summary: A little bug in fontwrapper-ft.cc > ---------------------------------------------------------------------------- > In the function FTFontWrapper::load_font, FT_Done_Face and FT_Done_FreeType > should be executed when "FT_Library library" and "FT_Face face" don't been > used any more. > > Actually I try to write a patch for the font system, let it support > multibyte string, just like GB2312(Chinese), Japanese, etc. Make it > possible to translate this game into other language. > ============================================================================ > > ---------------------------------------------------------------------------- > (0012505) KiloByte (developer) - 2011-04-14 02:10 > https://crawl.develz.org/mantis/view.php?id=1668#c12505 > ---------------------------------------------------------------------------- > noword: could you explain what do you mean? Getting support for drawing > such glyphs is a great thing, if you know a way, please elaborate. > > Multibyte string support is now in, we just haven't coded displaying it in > tiles yet. My plan involves using pango+fontconfig for finding a font that > can draw a given glyph, but it's possible I miss another solution. > > Issue History > Date Modified Username Field Change > ============================================================================ > 2010-06-02 05:02 noword New Issue > 2011-04-14 02:10 KiloByte Note Added: 0012505 > ============================================================================ > > ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ Crawl-ref-discuss mailing list Crawl-ref-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/crawl-ref-discuss