On Fri, Oct 09, 2009 at 01:29:58PM +0000, ash wrote: > So far I tried creating text using AG_TextRender and specifying it as button > surface. It does the trick for sizes, but I want to use non-english > characters, > and, despite manual saying that UTF-8 is supported, all I get is squares in > place of letters.
The font bundled with Agar (Bitstream Vera) only includes the ASCII, Latin-1 and Greek character ranges. You can select alternate fonts using AG_FetchFont() and AG_SetDefaultFont(); see demos/chinese/ for an example of this. The upcoming release will likely include support for fontconfig on some platforms, but for best portability you'll probably want to distribute your font with your application. You should be able to pass multiline text strings to AG_ButtonNew() or AG_ButtonText() - if that does not work as expected, please file a bug report to Bugzilla. _______________________________________________ Agar mailing list [email protected] http://libagar.org/lists.html
