Add a test for glyph path rendering.

Use it to also test a fixed bug in that code, where the original test
PDF no longer triggers the function that had the bug.

Bug: chromium:601362
Change-Id: I251b59ba5c55752a46bfaa680ef78a037d877283
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/60052
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/testing/resources/pixel/bug_601362.in b/testing/resources/pixel/bug_601362.in
new file mode 100644
index 0000000..29caa10
--- /dev/null
+++ b/testing/resources/pixel/bug_601362.in
@@ -0,0 +1,90 @@
+{{header}}
+{{object 1 0}} <<
+  /Type /Catalog
+  /Pages 2 0 R
+>>
+endobj
+{{object 2 0}} <<
+  /Type /Pages
+  /Count 1
+  /Kids [3 0 R]
+>>
+endobj
+{{object 3 0}} <<
+  /Type /Page
+  /Parent 2 0 R
+  /MediaBox [0 0 200 200]
+  /Resources <<
+    /ProcSet [/PDF /Text]
+    /Font <<
+      /F1 4 0 R
+      /F2 6 0 R
+    >>
+  >>
+  /Contents 8 0 R
+>>
+endobj
+{{object 4 0}} <<
+  /Type /Font
+  /Subtype /TrueType
+  /BaseFont /ABCXYZ+Calibri
+  /FirstChar 1
+  /LastChar 1
+  /Widths [300]
+  /FontDescriptor 5 0 R
+>>
+endobj
+{{object 5 0}} <<
+  /Type /FontDescriptor
+  /Ascent 680
+  /CapHeight 680
+  /Descent -177
+  /Flags 4
+  /FontBBox [0 -177 770 680]
+  /FontName /ABCXYZ+Calibri
+  /ItalicAngle 2147483649
+  /MissingWidth 506
+  /StemV 115
+>>
+endobj
+{{object 6 0}} <<
+  /Type /Font
+  /Subtype /TrueType
+  /BaseFont /BCDEFG+Calibri
+  /FirstChar 1
+  /LastChar 1
+  /Widths [300]
+  /FontDescriptor 7 0 R
+>>
+endobj
+{{object 7 0}} <<
+  /Type /FontDescriptor
+  /Ascent 680
+  /CapHeight 680
+  /Descent -177
+  /Flags 4
+  /FontBBox [0 -177 770 680]
+  /FontName /BCDEFG+Calibri
+  /ItalicAngle -20
+  /MissingWidth 506
+  /StemV 115
+>>
+endobj
+{{object 8 0}} <<
+  {{streamlen}}
+>>
+stream
+BT
+50 100 Td
+1 Tr
+/F1 20 Tf
+(A) Tj
+/F2 20 Tf
+(A) Tj
+ET
+endstream
+endobj
+{{xref}}
+{{trailer}}
+{{startxref}}
+%%EOF
diff --git a/testing/resources/pixel/bug_601362_expected.pdf.0.png b/testing/resources/pixel/bug_601362_expected.pdf.0.png
new file mode 100644
index 0000000..5d868d5
--- /dev/null
+++ b/testing/resources/pixel/bug_601362_expected.pdf.0.png
Binary files differ