Thanks for your rapid reply. But I cann't find this function:
AG_SetDefaultFont in agar lib, is there something wrong?

3ks.

-----------------------
Using AG_FetchFont() in your program initialization:

       AG_Font *font = AG_FetchFont("msyh.ttf", 12, 0);
       if (font != NULL)
               AG_SetDefaultFont(font);

See http://libagar.org/man3/AG_Text for details. AG_FetchFont() will scan
the "font-path" directories for the ttf file. You'll probably want to
edit the font-path before setting the font:

       AG_SetString(agConfig, "font-path", "/path/to/fontdir");

_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html

Reply via email to