[gccsdk] [Bug 184] New: RISC OS version of Pango, Cairo, fontconfig

Michael Gerbracht smartmails at arcor.de
Wed Jan 13 00:35:26 PST 2010


In article <4B4CFBC5.1020503 at care4free.net>, Chris Gransden
<chrisg at care4free.net> wrote:
> Michael Gerbracht wrote:
> > In article <bug-184-73 at http.www.riscos.info/bugzilla3/>,
> >    <bugzilla-daemon at riscos.info> wrote:
> >   
> >> pango, cairo and fontconfig all build on RISC OS, but ultimately,
> >> fontconfig makes assumptions about font resources and files that don't
> >> meaningfully exist on RISC OS, so any such program will fail quickly.
> >> [...] Some stuff I did is here, but where it is still useful is unknown:
> > That sounds good! I think there is also some use of cairo not connected
> > to porting. Is it currently possible to run some of the test files and
> > generate e.g. a PDF document with it on RISC OS? If this is possible, can
> > you give me a hint on how to do this? 
> >
> >   

> I don't know if this helps. The other way round works. I successfully
> compiled and ran the sample program from here,
> http://cairographics.org/renderpdf/
> All I had to do was copy '/etc/fonts' and '/usr/share/fonts' from ubuntu.

Thanks, but I guess you are over-estimating my knowledge by a factor of 100
or so ;-)

My confusion already starts with the content of the cairo tar archive. It
contains a directory "cairo-1/5/12" and a file "cairo-1/5/12/tar/gz". If I
unpack the file the content seems to be almost identical but I do not
understand where the difference is.

Then I guess I have to compile cairo first using GCC. I only have GCC
installed and I can probably manage to execute a make file. If I do so, do I
end up with one binary? As far as I understand cairo uses some kind of script
file which contains the description of a drawing and executes that file
outputting the result in a chosen format. How do I load this script then into
cairo? Something like *cairo script-path output-path or so?

I would like to use cairo to output vector graphics that make use of
transparency and colour fades etc. which can not be handled by the draw
format. So instead I would like to produce a cairo script, process it with
cairo and save it as pdf/svg/png or any other supported format. Will this
probably work with this port of cairo or am I to optimistic?

Thanks,
Michael




More information about the gcc mailing list