Just out of interest, theoretically speaking, how arduous a job would it be to relieve the Cairo module of its dependencies on FontConfig? I've got a simple text editor project in mind that only needs to ship with its own freeware font so FontConfig's automated cataloguing of available fonts is really overkill*. Do you think it's a realistic proposition or are they so closely interwoven that I'd have to be mad to even think about it?
Any advice/guidance appreciated -- Cairo looks the business but it could really do without the bloat (and tantrums, see below) of FontConfig for me. *Cough*CAIROLITE*Cough* ;D
*And apparently broken, I should mention -- the current version doesn't work as described in the docs in that it doesn't seem to automagically generate a reference config file anywhere locatable (I have to copy the one out of the examples folder into the application directory to avoid an error!) I'm assuming that Cairo applications are supposed to generate the config file on first run in the same way that a FontConfig example is? At the moment the ShowText() method generates a "Cannot load default config file" error if I don't manually supply the file... the pdf_output program (for it is he) completes but the pdf is subsequently devoid of text.
Any advice/guidance appreciated -- Cairo looks the business but it could really do without the bloat (and tantrums, see below) of FontConfig for me. *Cough*CAIROLITE*Cough* ;D
*And apparently broken, I should mention -- the current version doesn't work as described in the docs in that it doesn't seem to automagically generate a reference config file anywhere locatable (I have to copy the one out of the examples folder into the application directory to avoid an error!) I'm assuming that Cairo applications are supposed to generate the config file on first run in the same way that a FontConfig example is? At the moment the ShowText() method generates a "Cannot load default config file" error if I don't manually supply the file... the pdf_output program (for it is he) completes but the pdf is subsequently devoid of text.