Hello everybody,

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.

On Sun, Jun 19, 2011 at 12:00 AM, Josh Andler <scislac@...2179......> wrote:
On Fri, Jun 17, 2011 at 12:15 PM, Tavmjong Bah <tavmjong@...8...> wrote:
On Fri, 2011-06-17 at 17:45 +0200, Chris Lilley wrote:
> On Thursday, June 16, 2011, 7:56:43 PM, Tavmjong wrote:
>
> TB> The scope of Abhishek's work will be limited to parsing a font list
> TB> correctly and getting Inkscape to use the first available font in the
> TB> list.
>
> I just wanted to point out that this is not the correct behaviour (and in fact there is a test in the SVG 1.1 test suite which specifically tests for this behaviour, and produces a fail if the implementation always picks the first available font in the list).
>
> Instead, the list should be parsed and each character in the text should be displayed using the first font in the list which is
> a) available
> b) has a glyph for that character

Interesting. I doubt that Inkscape will ever implement the correct
behavior as it would require that Inkscape be able to do all the book
keeping to know which characters are available in which font. At the
moment we use Pango to come up with the best match for a given font
specification. Getting Inkscape to use the first available font in the
list will be a small step forward (right now it treats a font list as a
single font name and thus won't match anything).

I will say that regarless of what appears to be the likelihood of things getting implemented. It would be nice if Abhishek documents the code in various places where he can put TODOs about what the proper way to do things is vs how it currently works. This to me seems ideal so that if someone is in that code in the future and that functionality strikes them as particularly useful, they may be motivated to add it in.

Cheers,
Josh

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Inkscape-devel mailing list
Inkscape-devel@...1794...s.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/inkscape-devel




--
Regards,

Abhishek Sharma