gnustep on windows

2008-03-03 Thread Paul Fox
Ok, I've downloaded the patch and worked on merging the changes in 
CairoContext.m with the latest version (so pdf and ps output would still 
work) as well as cleaning up a few minor style things. It now compiles, 
but I get garbage when I try to run Gorm, and the GNUstep test appears 
to freeze. I can't find obvious errors in my modification, so is there 
some code somewhere else that's a problem? Here's the modified 
CairoContext.m: http://www.mediafire.com/?n2s1stkmu9c

and here's the result I get for Gorm: http://www.mediafire.com/?ianwbjdsdxs

Does anyone have any suggestions?

Paul



___
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev


Re: gnustep on windows

2008-03-03 Thread Paul Fox

I just made some small changes in CairoContext.m
The zip file has been updated :
http://amstradstuff.free.fr/GNUstep/back-win32cairo.zip


Oops... looks like someone beat me to the punch. Great minds think 
alike, eh?


At any rate, I showed my results, and they aren't ideal. Does anyone 
have ideas?


Paul


___
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev


Re: gnustep on windows

2008-03-02 Thread Paul Fox

When programming with GNUstep you will be working against the GNUstep
drawing API, not cairo or GDI. It is true that the implementation of
this API for cairo is more complete, but even that may be changed.


Oh, I know, but it doesn't make a lot of sense to maintain multiple backends when one will serve. Also GDI vector drawing looks ugly and Cairo looks nice... so I'd prefer to use Cairo. That way, my results should be pretty much the same on Windows and Linux. 


You might be talking about [Camaelon][1] (spelling is important).


I have read a bit about Camaelon, but my understanding is that it's a theming engine rather than an API. I also have the impression that it's a bit slow because it's pixmap-based. I was looking at the Narcissus theme engine, but the developer made the comment that his patch to NSScroller to enable theming of the scroller was rejected because it didn't conform to the theming API that had been planned. I haven't really been able to find out much about this API, however. 




___
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev


Re: gnustep on windows

2008-03-01 Thread Paul Fox

There shouldn't be any X dependencies in the cairo backend code apart
from the X surfaces of course. You should be able to provide your own MS
Windows surface and use that. This gets a bit harder on the make file
level, here our config scripts currently only support the cairo backend
for X11.
There is one other problem I see, although freetype is available for
Windows you will most likely want to use native font support. For this
you will need to implement your own classes or port the ones from the
the winlib backend.
Out of curiosity, why do you want to use cairo on Windows and not the
native window interface (or one based on GDI+)?


Why Cairo? Mainly because it gives me a fairly nice graphics library that's 
cross-platform. For fancy graphics, Cairo gives a consistent appearance across 
platforms, allows me to ignore platform when coding for the most part, and is 
much nicer looking than GDI. I'm really still exploring what's possible here, 
and it appears that Cairo is the most potentially capable backend.

Yeah, the config scripts will be a bother if I do this, especially given that I have very little knowledge or experience with sh scripting or the GNU Build System (such experience as I have makes me want a better build system.) 


There already is some limited theming available in GNUstep. You find the
API and the code for it in gui/Source/GSTheme.m.


Thanks, I'll take a look.

Paul



___
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev


gnustep on windows

2008-02-29 Thread Paul Fox
Currently, I am, for various reasons, tied to Windows for most of the 
time. I also think GNUstep looks as if it would make a good 
cross-platform development library (more elegant than QT, and without 
all the restrictions.)  However, in the course of examining and 
attempting to build GNUstep for Windows, I've discovered that  Cairo 
graphics for GNUstep under Windows are unimplemented. I'm interested in 
correcting that, and, from a cursory glance, it doesn't look 
tremendously difficult, but I haven't spent a lot of time yet tracking 
down all the bits of X dependent code, so I'm wondering if anyone knows 
how deep this dependency runs.


When I have more time (who knows when that will be!) I will take a 
deeper look and try to figure out everything that needs to be done to 
enable the Cairo backend on Windows.


On a side note, I've heard that there are plans for a theming API, but 
I've had some difficulty finding any details. Where could I find out 
about that?



___
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev