--
You received this message because you are subscribed to the Google Groups "diagrams-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to diagrams-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/diagrams-discuss/2e01729a-3017-4d16-a6c6-1b151d6c133a%40googlegroups.com.
Hi Jorge, not your fault! I think a few types changed in the SVGFonts package. Most relevant in this case I think is the fact that 'lin2' used to be defined using unsafePerformIO but this was potentially causing problems where the font loading was being performed multiple times. So now the type of 'lin2' is 'IO (PreparedFont Double)'. You can add the font as a parameter to your text' function, and load the font in your main function before calling mainWith (or however you are invoking diagrams). If you need a more complete example I'd be happy to make one, just let me know.Of course, we should also fix the code in the tutorial!-Brent
To unsubscribe from this group and stop receiving emails from it, send an email to diagrams...@googlegroups.com.
> text' font d s = (strokeP $ textSVG' (TextOpts font INSIDE_H KERN False d d) s)
> # lw none # fc black
and then later it defines> example = do
> font <- lin2
> return $ states font
> ...
To unsubscribe from this group and stop receiving emails from it, send an email to diagrams-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/diagrams-discuss/e9b33f2d-ed49-4d90-a82d-9a3644f8aa53%40googlegroups.com.
I didn't know about the new site either. DDG still reports the archived one:
Cheers,
Sylvain
To view this discussion on the web visit https://groups.google.com/d/msgid/diagrams-discuss/CAH0njdvCRDwS59_voyirzDbp_%2BH-hVvA2iTLqpWMLGujzxjQnA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/diagrams-discuss/4ae8afe1-38b9-9961-18c7-6c074aeac84c%40haskus.fr.
To view this discussion on the web visit https://groups.google.com/d/msgid/diagrams-discuss/e9b33f2d-ed49-4d90-a82d-9a3644f8aa53%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "diagrams-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to diagrams...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/diagrams-discuss/CAH0njdvCRDwS59_voyirzDbp_%2BH-hVvA2iTLqpWMLGujzxjQnA%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "diagrams-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to diagrams...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/diagrams-discuss/4ae8afe1-38b9-9961-18c7-6c074aeac84c%40haskus.fr.