Hi,
I appreciate the good work being done on Agar, and am making use of it in my
SDL-based project.
Until recently, I had been using the RC1 tarball and could change the
built-in Vera font settings prior to the AG_InitVideoSDL() call, using:
AG_TextParseFontSpec("_agFontVera,18,0");
I then pulled in the latest trunk from svn to solve g++ compiler errors I
was getting with the C++ wrapper code, only to find that the font
configuration was no longer having any effect. I also tried supplying a
fontconfig argument to the included 'agarpaint' app, also to no avail:
.../agarpaint -t "_agFontVera,18,0"
Looking at the code, there appears to be a config boolean named
'initial-run' that is set to 1 on startup (via core/core.c:AG_InitCore()).
With that set to true, gui/text.c:AG_TextInit() defaults to the
agDefaultFaceFT (_agFontVera) at 10pt, with no apparent way to override it.
The config/config.c:Save() function doesn't ever get called at any point to
flip that boolean to 0. Do I need to do that myself in my code? Can we
still be able to specify fonts on startup, even if it's the first time the
app's getting run?
Thanks,
Jay
$ uname -a
Linux 2.6.24-21-generic #1 SMP Mon Aug 25 16:57:51 UTC 2008 x86_64 GNU/Linux
$ g++ --version
g++ (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
$ freetype-config --version
9.16.3
Agar svn rev 7878
_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html