[Qgis-developer] Removing old labelling

Alex Mandel tech_dev at wildintellect.com
Sun Mar 11 16:01:09 EDT 2012


On 03/11/2012 11:55 AM, Martin Dobias wrote:
> On Tue, Mar 6, 2012 at 2:37 PM, Nathan Woodrow <madmanwoo at gmail.com> wrote:
>> Debug: src/core/qgspallabeling.cpp: 1108: (drawLabeling) LABELING work:  0
>> ms ... labels# 0
>> Debug: src/core/qgspallabeling.cpp: 1231: (drawLabeling) LABELING draw:  0
>> ms
>>
>> Only a small sample set but there is a speed difference.  The main thing
>> seems to be the painting which is slowing it down.
> 
> Just a note: time for old labeling is already counted within total
> layer rendering time, it is not that drawing of old labeling would be
> that fast :)
> 
> Anyway it's worth noting that when rendering text there are two possibilities:
> 1. draw text (old labeling) - faster, hard to draw buffers (currently
> being drawn by shifting the text several times)
> 2. convert text to vector path + draw path (new labeling) - slower,
> but with nice buffers (antialiased etc). Problems: text is converted
> to vectors -> harder postprocessing, bigger buffers are not drawn
> correctly.
> 
> Martin

Ah, that explains why the text isn't exported as text in svg files.
Would it be possible or make sense to do both. E.g. the text stays text
but a copy is converted and buffers are generated on the copy that is a
path?

Alex



More information about the Qgis-developer mailing list