Skip to content

Commit 62872d3

Browse files
authored
Add a test for typesetting quotation marks (#3179)
1 parent 1746c04 commit 62872d3

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
outs:
2+
- md5: 90d08c5a11c606abed51b84eafcdea04
3+
size: 1662
4+
hash: md5
5+
path: test_text_quotation_marks.png

pygmt/tests/test_text.py

+13
Original file line numberDiff line numberDiff line change
@@ -419,3 +419,16 @@ def test_text_nonascii():
419419
fig.text(x=1, y=1, text="xytext:°α") # noqa: RUF001
420420
fig.text(x=[5, 5], y=[3, 5], text=["xytext1:αζΔ❡", "xytext2:∑π∇✉"])
421421
return fig
422+
423+
424+
@pytest.mark.mpl_image_compare
425+
def test_text_quotation_marks():
426+
"""
427+
Test typesetting quotation marks.
428+
429+
See https://github.com/GenericMappingTools/pygmt/issues/3104.
430+
"""
431+
fig = Figure()
432+
fig.basemap(projection="X4c/2c", region=[0, 4, 0, 2], frame=0)
433+
fig.text(x=2, y=1, text="\\234 \\140 ' \" \\216 \\217", font="20p")
434+
return fig

0 commit comments

Comments
 (0)