Gregor,

Very cool and yes, please. Lets implement stretched text in mapnik 0.8.0.

Regards,
Artem

2010/1/8 Dane Springmeyer <[email protected]>:
> Gregor,
>
> This is great stuff and a feature I've always had interest in. I think
> stretched or fully justified text is only seldom used because its not
> well supported in renderers. Having this support in Mapnik would be
> great.
>
> You've likely seen that we have basic support for stretching text with
> the "character_spacing" parameter when using POINT_PLACEMENT added in 
> http://trac.mapnik.org/changeset/1254
>  which closed http://trac.mapnik.org/ticket/121. This is still
> lacking for LINE_PLACMENT.
>
> And http://trac.mapnik.org/changeset/1341 added the
> "justify_alignment" parameter, which I've not been able to play with
> yet, but appears close to what you are doing, but lacks in full (both
> right and left) justification.
>
> There is nothing in trunk that is different from the 0.7 in terms of
> placement algorithms, so you should be fine developing against 0.7 and
> we'll help you port over to trunk in time.
>
> Cheers,
>
> Dane
>
>
>
> On Jan 8, 2010, at 1:56 PM, Gregor Berginc wrote:
>
>> Dear all,
>>
>> I was trying to build a map of strings, where each string fill its
>> entire shape, e.g. to display the name of the mountain ranges.
>> Although I studied the documentation on Trac and the code itself, I
>> was not able to find anything like this in the current /branches/0.7
>> release (unfortunately, I am not able to build boost 1.41 so I
>> cannot use /trunk at the moment).
>>
>> Therefore, I modified the current text renderer (placement_finder to
>> be more exact) to support "justified" text rendering for line
>> placement. Below are some screen-shots showing the end result
>> (please note that the style is not optimal yet!).
>>
>> An example of such a map is shown in the following image:
>>
>>       o http://gmajna.net/svojat/lemmy/rezi.png
>>
>> And two samples once integrated with our 3d visualisation soultion
>> Gaea+:
>>
>>       o http://gmajna.net/svojat/lemmy/gaea-1.png
>>       o http://gmajna.net/svojat/lemmy/gaea-2.png
>>
>> Although such a style is seldom used in maps seen on the web I was
>> wondering whether there is anyone else interested in such a feature
>> of the text renderer. If so, I can try to clean up the code (yes,
>> it's been a while since I worked with C++ :)) and share it.
>>
>> Wish you all a great weekend,
>>
>>       Gregor
>>
>> =======================================================
>> Gregor Berginc | Product Manager | Gaea+
>> XLAB d.o.o. | Pot za Brdom 100 | SI-1000 Ljubljana | Slovenia | Europe
>> http://gaeaplus.com | [email protected] | http://xlab.si
>> T. +386 1 2447 754 | M. +386 31 340 745
>>
>>
>> _______________________________________________
>> Mapnik-users mailing list
>> [email protected]
>> https://lists.berlios.de/mailman/listinfo/mapnik-users
>
> _______________________________________________
> Mapnik-users mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/mapnik-users
>
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to