diff --git a/src/UglyToad.PdfPig.Tests/Integration/Documents/Pig Production Handbook.jpg b/src/UglyToad.PdfPig.Tests/Integration/Documents/Pig Production Handbook.jpg
new file mode 100644
index 00000000..7f6d6d7d
Binary files /dev/null and b/src/UglyToad.PdfPig.Tests/Integration/Documents/Pig Production Handbook.jpg differ
diff --git a/src/UglyToad.PdfPig.Tests/Integration/Documents/Pig Production Handbook.png b/src/UglyToad.PdfPig.Tests/Integration/Documents/Pig Production Handbook.png
new file mode 100644
index 00000000..fdedbba0
Binary files /dev/null and b/src/UglyToad.PdfPig.Tests/Integration/Documents/Pig Production Handbook.png differ
diff --git a/src/UglyToad.PdfPig.Tests/Integration/VisualVerification/GenerateLetterBoundingBoxImages.cs b/src/UglyToad.PdfPig.Tests/Integration/VisualVerification/GenerateLetterBoundingBoxImages.cs
index cd5d1dac..b3c6e614 100644
--- a/src/UglyToad.PdfPig.Tests/Integration/VisualVerification/GenerateLetterBoundingBoxImages.cs
+++ b/src/UglyToad.PdfPig.Tests/Integration/VisualVerification/GenerateLetterBoundingBoxImages.cs
@@ -12,6 +12,7 @@
private const string SinglePageFormattedType0Content = "Type0 Font";
private const string SinglePageType1Content = "ICML03-081";
private const string SingleInkscapePage = "Single Page Simple - from inkscape";
+ private const string PigProduction = "Pig Production Handbook";
private static string GetFilename(string name)
{
@@ -61,6 +62,12 @@
Run(@"Rotated Text Libre Office", 841);
}
+ [Fact]
+ public void PigProductionCompactFontFormat()
+ {
+ Run(PigProduction);
+ }
+
private static void Run(string file, int imageHeight = 792)
{
var pdfFileName = GetFilename(file);
diff --git a/src/UglyToad.PdfPig/Geometry/PdfPoint.cs b/src/UglyToad.PdfPig/Geometry/PdfPoint.cs
index fba7968c..b6766e28 100644
--- a/src/UglyToad.PdfPig/Geometry/PdfPoint.cs
+++ b/src/UglyToad.PdfPig/Geometry/PdfPoint.cs
@@ -13,7 +13,7 @@
///
/// The origin of the coordinates system.
///
- public static PdfPoint Origin = new PdfPoint(0m, 0m);
+ public static PdfPoint Origin { get; } = new PdfPoint(0m, 0m);
///
/// The X coordinate for this point. (Horizontal axis).
@@ -52,11 +52,21 @@
Y = (decimal)y;
}
+ ///
+ /// Creates a new which is the current point moved in the x direction relative to its current position by a value.
+ ///
+ /// The distance to move the point in the x direction relative to its current location.
+ /// A new point shifted on the x axis by the given delta value.
public PdfPoint MoveX(decimal dx)
{
return new PdfPoint(X + dx, Y);
}
-
+
+ ///
+ /// Creates a new which is the current point moved in the y direction relative to its current position by a value.
+ ///
+ /// The distance to move the point in the y direction relative to its current location.
+ /// A new point shifted on the y axis by the given delta value.
public PdfPoint MoveY(decimal dy)
{
return new PdfPoint(X, Y + dy);