Hi all,
I was debugging inkscape with eclipse recently and found out that sp_text_build was called out every time a new file is loaded. Is this where font initialization takes place. Please confirm anybody.
On Fri, Jun 24, 2011 at 12:22 AM, Abhishek Sharma <sharma.abhishek.it@ gmail.com> wrote:
Hi,
I am sorry but I just noticed that when you CLICK on the text which was loaded from the file then the print statement does get executed(in the FaceFromStyle) and that too at every interaction(clicking, dragging, expanding, almost anything). So the new question is, what happens for the first time?? From where does it read the style values if it does not call this function???
On Thu, Jun 23, 2011 at 11:56 PM, Jasper van de Gronde < th.v.d.gronde@...528...> wrote:
On 2011-06-23 19:40, Abhishek Sharma wrote:
May anybody please give me heads up as to what inskcape does(effectively which function it calls or which class it refers) when it reads a new svg file and checks its style for its fonts. I have already looked into FontFactory and the only function which it has for reading font spec from SPStyle is FaceFromStyle. But this function doesn't get called when a new svg is loaded(verified it through printf and gtk_dialog_new, none of them give a response on a new svg loaded). So any heads up on this will be really helpful. I shall be highly thankful.
I'm no expert on the matter (so if anyone simply knows the answer, feel free to chime in), but SPTextStyle appears to be the "access point" for font styles, so what if you simply "knock it out" and see what breaks? Crude, I know, but it can be quite effective.
Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Data protection magic? Nope - It's vRanger. Get your free trial download today. http://p.sf.net/sfu/quest-sfdev2dev _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
-- Regards,
Abhishek Sharma