<div dir="ltr">I understand all of that. I have never suggested that the SVG code be brought back into Mapserver. As I said quite clearly, I realize that it is a Cairo issue. But surely as a project that utilizes Cairo, and one that would benefit from the use of text elements in SVGs (as used to be the case before Cairo was chosen), Mapserver could have some role in promoting the addition of that feature to Cairo.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 31, 2013 at 9:40 AM, thomas bonfort <span dir="ltr"><<a href="mailto:thomas.bonfort@gmail.com" target="_blank">thomas.bonfort@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Jefferson,<br>
We cannot simply add <text> elements ourselves, as the cairo svg<br>
renderer is a blackbox we can only access through the cairo api.<br>
Given the patches proposed to cairo, I would indeed be inclined to<br>
believe that the feature is rather trivial to implement, however I'm<br>
pretty sure the cairo folks have some sound philosophical or technical<br>
reasons for not including it as-is. You may also have a look at<br>
<a href="https://bugs.freedesktop.org/show_bug.cgi?id=38516" target="_blank">https://bugs.freedesktop.org/show_bug.cgi?id=38516</a> which has a bit of<br>
useful information.<br>
Specifically for mapserver, it would be vastly more efficient in the<br>
long and short term if this were to be added to cairo. If that was<br>
never going to be the case, then a "specific rendering driver" would<br>
need to be implemented to bypass cairo completely, the extent of the<br>
effort for that is very dependent on the scope of the features that<br>
would be supported (simple lines, polygons and text would be rather<br>
trivial, but there's much more complexity when adding other symbols) -<br>
basically, we would need to reimplement most of the cairo svg driver.<br>
<br>
regards,<br>
thomas<br>
<br>
On 31 December 2013 15:22, Jefferson Williams<br>
<div class="HOEnZb"><div class="h5"><<a href="mailto:jefferson.d.williams@gmail.com">jefferson.d.williams@gmail.com</a>> wrote:<br>
> When you say "a specific rendering driver"... I am not a professional<br>
> programmer and am not trying to speak above my level, but it seems to me<br>
> that producing a text element in an SVG file is a fairly trivial task<br>
> compared to rendering the text into vectors, which is what Cairo does now.<br>
> The text doesn't need to be "rendered" at all, but simply inserted into a<br>
> text element such as this example from <a href="http://w3.org" target="_blank">w3.org</a>:<br>
><br>
> <text x="250" y="150" font-family="Verdana" font-size="55" fill="blue"<br>
>>Hello, out there</text><br>
><br>
> Thoughts? I realize that this is a Cairo issue, not a Mapserver issue, since<br>
> the SVG rendering was moved out of Mapserver; but would you agree that this<br>
> would be a fairly simple task from a programming perspective?<br>
><br>
><br>
> On Tue, Dec 31, 2013 at 7:14 AM, thomas bonfort <<a href="mailto:thomas.bonfort@gmail.com">thomas.bonfort@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Jefferson,<br>
>> There is currently no way to produce those elements with mapserver,<br>
>> and to my knowledge there are no plans to do so yet. A specific<br>
>> rendering driver would need to be implemented to achieve this, but has<br>
>> not yet been funded or proposed.<br>
>><br>
>> regards,<br>
>> thomas<br>
>><br>
>> On 24 December 2013 17:42, Jefferson Williams<br>
>> <<a href="mailto:jefferson.d.williams@gmail.com">jefferson.d.williams@gmail.com</a>> wrote:<br>
>> > I'm a long-time user of PHP Mapscript and have written code to produce<br>
>> > maps<br>
>> > for Wikipedia. Older versions of Mapscript produced SVG files that<br>
>> > contained text elements. In more recent versions, text is produced as a<br>
>> > series of vectors instead, which means that the text cannot be edited.<br>
>> > Often auto-generated maps need to be tweaked in various ways before they<br>
>> > are<br>
>> > ready for the public. Now I can move text, but I cannot edit it.<br>
>> ><br>
>> > Is there a way with 6.2 or 6.4 that labels can be produced as text<br>
>> > elements<br>
>> > in the resulting SVG file?<br>
>> ><br>
>> > --<br>
>> ><br>
>> > Jeff Williams<br>
>> ><br>
>> > _______________________________________________<br>
>> > mapserver-users mailing list<br>
>> > <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
>> > <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
><br>
><br>
><br>
><br>
> --<br>
><br>
> Jeff Williams<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><br>Jeff Williams
</div>