[GRASS-user] Label difficulties
Michael Barton
michael.barton at asu.edu
Fri Aug 31 04:02:41 EDT 2007
I fixed the bounding box size problem. It's in the cvs now. There is still a
problem, however, if the label is not aligned on center with the vector
point (this is NOT offset). When it is not aligned on center, it doesn't
match the bounding box. There needs to be more code to take care of this,
but it's really late now.
Note: if you don't click the override button, the labels will display
according to whatever is in the label file and use those defaults--reverting
the panel each time you click display. If you click the override button, it
will use whatever you set in the GUI panel and keep it showing.
Michael
On 8/29/07 2:50 AM, "Hamish" <hamish_nospam at yahoo.com> wrote:
> Hamish wrote:
>>> maybe a way to process the text string with formatting codes to
>>> newlines automatically? (tcl is string friendly, so search and
>>> replace shouldn't be too hard, although I've no idea how)
>
> Ivan wrote:
>> It's rather simple:
>>
>> % set a {1\n2}
>> 1\n2
>> % subst -nocommands -novariables $a
>> 1
>> 2
>> %
>
>
> Thanks Ivan, that works! Applied in 6.3cvs.
>
> The border box still needs to be updated to count the number of lines in
> the string and adjust the background box width and height accordingly. For
> now you can just turn off the background box.
>
> Bug: I notice that if you try and change the PS label background box
> color or font color it just gets reset when you redraw the display.
>
> I've little idea about Tcl/Tk so I must leave these small tasks for
> someone else. The "sample" label file that comes with Spearfish has a
> \n newline in it to test with.
>
> I would hold off backporting the fixes to the 6.2.x branch until it is
> all working in 6.3cvs, then do it as a single patch.
>
>
> Hamish
__________________________________________
Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University
phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
More information about the grass-user
mailing list