Bug #1125

gmtcontour does'nt respect font color which set by -A+f

Added by Michael 3 months ago. Updated 2 months ago.

Status:In ProgressStart date:2017-07-01
Priority:NormalDue date:
Assignee:Paul% Done:

0%

Category:-
Target version:-
Affected version:5.x-svn Platform:

Description

Code:
@
echo "0 0 0
1 0 1
2 0 0
0 1 1
1 1 2
2 1 1
0 2 0
1 2 1
2 2 0" | gmt xyz2grd -R0/2/0/2 -I1/1 -Gtest.grd

echo "0 red 2 blue" >test.cpt
gmt grdimage test.grd -Ctest.cpt -JX10c -R0/2/0/2 -Bx1 -By1 -BseWN -P -K >test1.ps
gmt grdcontour -A+1+c50%+f12p,Times-Italic,blue+o+p2p,green+gwhite -Gl0/0/2/2 test.grd -JX10c -R0/2/0/2 -P -O >>test1.ps
@
The blue color in "12p,Times-Italic,blue" is ignored. Size and font family works fine. The text is always the same color as the contour line (with or without -W).

Svn r18510

History

#1 Updated by Paul 2 months ago

  • Status changed from New to In Progress
  • Assignee set to Paul

I can confirm the problem and will have a look at solutions.

#2 Updated by Paul 2 months ago

Note to myself: The +f is parsed correctly and color is set to blue. But later, when
gmt_M_memcpy (L→rgb, &G→font_label.fill.rgb, 4, double);
the color has been reset to 0/0/0. So something is resetting or overriding the rgb field.

Also available in: Atom PDF