Hi,
I've dug around pgserver to add font support, the core file seems to be
widget/textbox_frontend.c
In that file, in the function textbox_write() I think these lines do the
font-formatting:
e = textbox_getformat(self,&fmt);
errorcheck;
e = document_load(DATA->doc, fmt, str);
errorcheck;
textbox_getformat gets some default format (which seems to be the default Clean-8 font)
I've already added:
A font handle for the textboxdata struct
PG_WP_FONT cases for textbox_set and textbox_get
I have copied
DATA->font = handle_canonicalize((handle) data);
resizewidget(self);
set_widget_rebuild(self);
from button.c, but I suspect I should use textbox_write() with the currently displayed
text.
So the only thing still missing is as far as I can see is to connect textbox_write()
to use the font handle - probably in the textbox_getformat() function.
Am I on the right way?
Could you please explain to me how the format-system works - it seems a little bit
complicated - and where it actually chooses the font?
I understand that you are busy and probably don't want to do much anymore to the old
version of picogui, but all I need is a push into the right direction, I hope I can
fix it up myself as soon as I know more about how the format system works.
Thanks a lot,
Roland
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Pgui-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/pgui-devel