hacking latex-pstricks.cpp to export text as text
Hi folks,
I'm would like to provide a choice for psTricks export to export text as text (not paths).
My problems are that I can't get the position of the text within:
PrintLatex::text(Inkscape::Extension::Print *mod, char const *text,NR::Point p, SPStyle const *const style)
'p' looks like it should contain this information (ie. p[NR::X]) but it contains the value 0.
Further up, 'latex-pstricks-out.cpp' is making a call to: sp_item_invoke_print (mod->base, &context); where Inkscape::Extension::Print = *mod; mod->base = SP_ITEM (sp_document_root (doc));
...so; any thoughts appreciated!
r,
My problems are that I can't get the position of the text within:
PrintLatex::text(Inkscape::Extension::Print *mod, char const *text,NR::Point p, SPStyle const *const style)
'p' looks like it should contain this information (ie. p[NR::X]) but it contains the value 0.
IIRC, the text output always uses a matrix transform for positioning and the x,y coordinates for doing multiple lines, kerning, justification and so on.
Richard.
participants (2)
-
Richard Henwood
-
Richard Hughes