Hi again,
Still learning Agar, here are some remarks:
- about AG_SetDefaultFont, one can see that the default font settings,
despite push/pop operations of text states, are lost at least after the
first rendering; thus, if having set a wider default font that Agar's
built-in one, labels not having been associated to a specific font will
be truncated. I could check it by forcing in label.c's version of
SizeAllocate "agTextState->font = agDefaultFont;" if no label-specific
font was defined: renderings were not truncated anymore. Therefore there
must be a place where agTextState is wrongly reset to its built-in value
(but I could not find where)
- one can see as well that, when the previous problem is fixed, labels
may still be truncated of a few pixels (ex: with a third-party TTF font,
I could see that the rightmost pixels of each label, at least the ones
terminating with a "t", were lacking); maybe a problem in TextSizeFT; I
can send screenshots if needed
- it would be nice if:
+ the make 'install' target depended on the 'all' target (so that
installing would rebuild if needed)
+ there was a way of rebuilding/installing a library (ex: gui)
without going through the (lengthy) doc process (maybe an appropriate
targer already exist?)
+ the --enable-debug configure flag enabled the debug compilation
mode (-g and al) ; even adding 'echo "CFLAGS+=-g" >> Makefile.config' in
configure.in or in the configure script does not work, as in
Makefile.config this variable is re-defined (overwritten) multiple
times; by default Agar library are not stripped but do not contain any
debug info
- there seems to be a minor problem with the downloadable HTML doc
(tested twice):
> tar xvzf agar-api.tar.gz
zip: stdin: decompression OK, trailing garbage ignored
tar: Child returned status 2
tar: Exiting with failure status due to previous errors
- another minor suggestion: maybe a whitespace-fixing tool like the
one provided with emacs could improve the Agar sources
Finally, I guess that most renderings could be cached, so that the GUI
could redraw itself a lot less frequently than currently (logging
actions shows many useless SizeRequest/SizeAllocate calls of all static
labels).
Thanks for your library and for your time,
Best regards (and merry Christmas!),
Olivier Boudeville.
_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html