Bug #1226

psxy with -Sq ignores the font outline attributes for curved text

Added by Michael 6 months ago. Updated 4 months ago.

Status:In ProgressStart date:2018-03-26
Priority:NormalDue date:
Assignee:Paul% Done:

50%

Category:-
Target version:Candidate for next minor release
Affected version:6.x-svn Platform:

Description

This is exactly same as #1204, but for curved text.
Code:

echo "0.5 0.8 Outlined text" | gmt pstext -JX12c -Xa1c -Ya1c -R0/1/0/1 -F+f40p,Times-Bold,red=1p,blue -Bswne -Bxy0.5 -P -K >test.ps # Outlines ok
echo "0 0.6
1 0.6" | gmt psxy -JX12c -Xa1c -Ya1c -R0/1/0/1 -Sqn1:+v+l"Not outlined text"+f40p,Times-Bold,red=1p,blue -P -O -K >>test.ps # No outlines

echo "0.5 0.4 Correct outline" | gmt pstext -JX12c -Xa1c -Ya1c -R0/1/0/1 -F+f40p,Times-Bold,green=~2p,black -Bswne -Bxy0.5 -P -O -K >>test.ps
echo "0 0.2
1 0.2" | gmt psxy -JX12c -Xa1c -Ya1c -R0/1/0/1 -Sqn1:+l"Incorrect outline"+f40p,Times-Bold,green=~2p,black -P -O >>test.ps

Also, -Sq ignores the =~ operation. Of course, it is still not documented, but, nevertheless...

r19979

test.ps (24.4 KB) Michael, 2018-03-26 17:20

History

#1 Updated by Paul 4 months ago

  • Status changed from New to In Progress
  • Assignee set to Paul
  • Target version set to Candidate for next minor release
  • % Done changed from 0 to 50

I have fixed the "Incorrect outline" case for quoted lines. It had a different sequence of fill and stroke than what pstext did. That example now works. The curved text is a different beast and wil work on that next. In r20190.

Also available in: Atom PDF