diff --git a/src/UglyToad.PdfPig.Fonts/AdobeFontMetrics/AdobeFontMetricsParser.cs b/src/UglyToad.PdfPig.Fonts/AdobeFontMetrics/AdobeFontMetricsParser.cs
index 7af6ecf6..6c1da918 100644
--- a/src/UglyToad.PdfPig.Fonts/AdobeFontMetrics/AdobeFontMetricsParser.cs
+++ b/src/UglyToad.PdfPig.Fonts/AdobeFontMetrics/AdobeFontMetricsParser.cs
@@ -6,7 +6,10 @@
using Core;
using Fonts;
- internal static class AdobeFontMetricsParser
+ ///
+ /// Parses files in the Adobe Font Metrics (AFM) format.
+ ///
+ public static class AdobeFontMetricsParser
{
///
/// This is a comment in a AFM file.
@@ -313,12 +316,18 @@
///
public const string KernPairKpx = "KPX";
+ ///
+ /// This is a kern pair.
+ ///
public const string KernPairKpy = "KPY";
private static readonly char[] IndividualCharmetricsSplit = {';'};
private static readonly char[] CharmetricsKeySplit = {' '};
+ ///
+ /// Parse the font metrics from the input bytes.
+ ///
public static AdobeFontMetrics Parse(IInputBytes bytes, bool useReducedDataSet)
{
var stringBuilder = new StringBuilder();
diff --git a/src/UglyToad.PdfPig.Fonts/AssemblyInfo.cs b/src/UglyToad.PdfPig.Fonts/AssemblyInfo.cs
new file mode 100644
index 00000000..c17316b8
--- /dev/null
+++ b/src/UglyToad.PdfPig.Fonts/AssemblyInfo.cs
@@ -0,0 +1,3 @@
+using System.Runtime.CompilerServices;
+
+[assembly: InternalsVisibleTo("UglyToad.PdfPig.Tests")]
\ No newline at end of file
diff --git a/src/UglyToad.PdfPig.Fonts/TrueType/Tables/HeaderTable.cs b/src/UglyToad.PdfPig.Fonts/TrueType/Tables/HeaderTable.cs
index 75529f3d..25f30b01 100644
--- a/src/UglyToad.PdfPig.Fonts/TrueType/Tables/HeaderTable.cs
+++ b/src/UglyToad.PdfPig.Fonts/TrueType/Tables/HeaderTable.cs
@@ -210,6 +210,10 @@
[Flags]
public enum HeaderMacStyle : ushort
{
+ ///
+ /// No flags set.
+ ///
+ None = 0,
///
/// Bold.
///
diff --git a/src/UglyToad.PdfPig.Tests/Encryption/AesEncryptionHelperTests.cs b/src/UglyToad.PdfPig.Tests/Encryption/AesEncryptionHelperTests.cs
index f4d45f45..6a07a911 100644
--- a/src/UglyToad.PdfPig.Tests/Encryption/AesEncryptionHelperTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Encryption/AesEncryptionHelperTests.cs
@@ -2,8 +2,8 @@
namespace UglyToad.PdfPig.Tests.Encryption
{
+ using PdfPig.Core;
using PdfPig.Encryption;
- using PdfPig.Util;
public class AesEncryptionHelperTests
{
diff --git a/src/UglyToad.PdfPig.Tests/Fonts/CharacterPathTests.cs b/src/UglyToad.PdfPig.Tests/Fonts/CharacterPathTests.cs
index 033a2b95..6f689f5b 100644
--- a/src/UglyToad.PdfPig.Tests/Fonts/CharacterPathTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Fonts/CharacterPathTests.cs
@@ -1,7 +1,7 @@
namespace UglyToad.PdfPig.Tests.Fonts
{
using System.Text;
- using PdfPig.Fonts;
+ using PdfPig.Core;
using PdfPig.Geometry;
using Xunit;
diff --git a/src/UglyToad.PdfPig.Tests/Fonts/CidFonts/VerticalWritingMetricsTests.cs b/src/UglyToad.PdfPig.Tests/Fonts/CidFonts/VerticalWritingMetricsTests.cs
index d42feebd..31c1ee81 100644
--- a/src/UglyToad.PdfPig.Tests/Fonts/CidFonts/VerticalWritingMetricsTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Fonts/CidFonts/VerticalWritingMetricsTests.cs
@@ -1,7 +1,7 @@
namespace UglyToad.PdfPig.Tests.Fonts.CidFonts
{
using System.Collections.Generic;
- using PdfPig.Fonts.CidFonts;
+ using PdfFonts.CidFonts;
using PdfPig.Geometry;
using Xunit;
diff --git a/src/UglyToad.PdfPig.Tests/Fonts/Cmap/CidRangeTests.cs b/src/UglyToad.PdfPig.Tests/Fonts/Cmap/CidRangeTests.cs
index 084021b6..9abc7622 100644
--- a/src/UglyToad.PdfPig.Tests/Fonts/Cmap/CidRangeTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Fonts/Cmap/CidRangeTests.cs
@@ -2,7 +2,7 @@
namespace UglyToad.PdfPig.Tests.Fonts.Cmap
{
using System;
- using PdfPig.Fonts.Cmap;
+ using PdfFonts.Cmap;
using Xunit;
public class CidRangeTests
diff --git a/src/UglyToad.PdfPig.Tests/Fonts/Cmap/CodespaceRangeTests.cs b/src/UglyToad.PdfPig.Tests/Fonts/Cmap/CodespaceRangeTests.cs
index 225f42c3..2a890eea 100644
--- a/src/UglyToad.PdfPig.Tests/Fonts/Cmap/CodespaceRangeTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Fonts/Cmap/CodespaceRangeTests.cs
@@ -2,7 +2,7 @@
{
using System;
using System.Linq;
- using PdfPig.Fonts.Cmap;
+ using PdfFonts.Cmap;
using PdfPig.Tokens;
using Xunit;
diff --git a/src/UglyToad.PdfPig.Tests/Fonts/CompactFontFormat/CompactFontFormatParserTests.cs b/src/UglyToad.PdfPig.Tests/Fonts/CompactFontFormat/CompactFontFormatParserTests.cs
index 3413a9b3..c02362e4 100644
--- a/src/UglyToad.PdfPig.Tests/Fonts/CompactFontFormat/CompactFontFormatParserTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Fonts/CompactFontFormat/CompactFontFormatParserTests.cs
@@ -3,8 +3,8 @@
using System;
using System.IO;
using System.Linq;
- using PdfPig.Fonts.CompactFontFormat;
- using PdfPig.Fonts.CompactFontFormat.Dictionaries;
+ using PdfFonts.CompactFontFormat;
+ using PdfFonts.CompactFontFormat.Dictionaries;
using Xunit;
public class CompactFontFormatParserTests
diff --git a/src/UglyToad.PdfPig.Tests/Fonts/Encodings/GlyphListFactoryTests.cs b/src/UglyToad.PdfPig.Tests/Fonts/Encodings/GlyphListFactoryTests.cs
index 010e450b..22235895 100644
--- a/src/UglyToad.PdfPig.Tests/Fonts/Encodings/GlyphListFactoryTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Fonts/Encodings/GlyphListFactoryTests.cs
@@ -2,7 +2,7 @@
{
using System;
using System.IO;
- using PdfPig.Fonts.Encodings;
+ using PdfFonts.Encodings;
using Xunit;
public class GlyphListFactoryTests
diff --git a/src/UglyToad.PdfPig.Tests/Fonts/Encodings/GlyphListTests.cs b/src/UglyToad.PdfPig.Tests/Fonts/Encodings/GlyphListTests.cs
index 0d2937ce..d0d42e07 100644
--- a/src/UglyToad.PdfPig.Tests/Fonts/Encodings/GlyphListTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Fonts/Encodings/GlyphListTests.cs
@@ -1,7 +1,7 @@
namespace UglyToad.PdfPig.Tests.Fonts.Encodings
{
using System.Collections.Generic;
- using PdfPig.Fonts.Encodings;
+ using PdfFonts.Encodings;
using Xunit;
public class GlyphListTests
diff --git a/src/UglyToad.PdfPig.Tests/Fonts/Parser/AdobeFontMetricsParserTests.cs b/src/UglyToad.PdfPig.Tests/Fonts/Parser/AdobeFontMetricsParserTests.cs
index baeb82d4..b79899ea 100644
--- a/src/UglyToad.PdfPig.Tests/Fonts/Parser/AdobeFontMetricsParserTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Fonts/Parser/AdobeFontMetricsParserTests.cs
@@ -2,8 +2,8 @@
{
using System;
using System.IO;
- using PdfPig.Fonts.Parser;
- using PdfPig.IO;
+ using PdfPig.Core;
+ using PdfPig.Fonts.AdobeFontMetrics;
using Xunit;
public class AdobeFontMetricsParserTests
@@ -72,15 +72,13 @@ C 36 ; WX 600 ; N dollar ; B 105 -126 496 662 ;
C 37 ; WX 600 ; N percent ; B 81 -15 518 622 ;
EndCharMetrics";
-
- private readonly AdobeFontMetricsParser parser = new AdobeFontMetricsParser();
-
+
[Fact]
public void CanParseAfmFile()
{
var input = StringBytesTestConverter.Convert(CourierAfmSnippet, false);
- var metrics = parser.Parse(input.Bytes, false);
+ var metrics = AdobeFontMetricsParser.Parse(input.Bytes, false);
Assert.NotNull(metrics);
}
@@ -88,11 +86,11 @@ EndCharMetrics";
[Fact]
public void CanParseHelveticaAfmFile()
{
- var helvetica = GetResourceBytes("UglyToad.PdfPig.Resources.AdobeFontMetrics.Helvetica.afm");
+ var helvetica = GetResourceBytes("UglyToad.PdfPig.Fonts.Resources.AdobeFontMetrics.Helvetica.afm");
var input = new ByteArrayInputBytes(helvetica);
- var metrics = parser.Parse(input, false);
+ var metrics = AdobeFontMetricsParser.Parse(input, false);
Assert.NotNull(metrics);
}
diff --git a/src/UglyToad.PdfPig.Tests/Fonts/Parser/CMapParserTests.cs b/src/UglyToad.PdfPig.Tests/Fonts/Parser/CMapParserTests.cs
index 248a0fa7..e198d24d 100644
--- a/src/UglyToad.PdfPig.Tests/Fonts/Parser/CMapParserTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Fonts/Parser/CMapParserTests.cs
@@ -3,8 +3,8 @@
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
- using PdfPig.Fonts.Parser;
- using PdfPig.IO;
+ using PdfFonts.Parser;
+ using PdfPig.Core;
using Xunit;
public class CMapParserTests
diff --git a/src/UglyToad.PdfPig.Tests/Fonts/Parser/Parts/BaseFontRangeParserTests.cs b/src/UglyToad.PdfPig.Tests/Fonts/Parser/Parts/BaseFontRangeParserTests.cs
index 8262d605..26849469 100644
--- a/src/UglyToad.PdfPig.Tests/Fonts/Parser/Parts/BaseFontRangeParserTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Fonts/Parser/Parts/BaseFontRangeParserTests.cs
@@ -1,7 +1,7 @@
namespace UglyToad.PdfPig.Tests.Fonts.Parser.Parts
{
- using PdfPig.Fonts.Cmap;
- using PdfPig.Fonts.Parser.Parts;
+ using PdfFonts.Cmap;
+ using PdfFonts.Parser.Parts;
using PdfPig.Tokens;
using Xunit;
diff --git a/src/UglyToad.PdfPig.Tests/Fonts/Standard14Tests.cs b/src/UglyToad.PdfPig.Tests/Fonts/Standard14Tests.cs
index 83cefee6..6e932db5 100644
--- a/src/UglyToad.PdfPig.Tests/Fonts/Standard14Tests.cs
+++ b/src/UglyToad.PdfPig.Tests/Fonts/Standard14Tests.cs
@@ -1,6 +1,6 @@
namespace UglyToad.PdfPig.Tests.Fonts
{
- using PdfPig.Fonts;
+ using PdfPig.Fonts.Standard14Fonts;
using Xunit;
public class Standard14Tests
diff --git a/src/UglyToad.PdfPig.Tests/Fonts/TrueType/Parser/TrueTypeFontParserTests.cs b/src/UglyToad.PdfPig.Tests/Fonts/TrueType/Parser/TrueTypeFontParserTests.cs
index 93a528eb..b5852d3b 100644
--- a/src/UglyToad.PdfPig.Tests/Fonts/TrueType/Parser/TrueTypeFontParserTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Fonts/TrueType/Parser/TrueTypeFontParserTests.cs
@@ -5,16 +5,14 @@ namespace UglyToad.PdfPig.Tests.Fonts.TrueType.Parser
using System.Globalization;
using System.Text;
using System.Text.RegularExpressions;
+ using PdfPig.Core;
using PdfPig.Fonts.TrueType;
using PdfPig.Fonts.TrueType.Parser;
using PdfPig.Fonts.TrueType.Tables;
- using PdfPig.IO;
using Xunit;
public class TrueTypeFontParserTests
{
- private readonly TrueTypeFontParser parser = new TrueTypeFontParser();
-
[Fact]
public void ParseRegularRoboto()
{
@@ -22,15 +20,15 @@ namespace UglyToad.PdfPig.Tests.Fonts.TrueType.Parser
var input = new TrueTypeDataBytes(new ByteArrayInputBytes(bytes));
- var font = parser.Parse(input);
+ var font = TrueTypeFontParser.Parse(input);
Assert.Equal(1, font.Version);
Assert.Equal(1, font.TableRegister.HeaderTable.Version);
Assert.Equal(1, font.TableRegister.HeaderTable.Revision);
- Assert.Equal(1142661421, font.TableRegister.HeaderTable.CheckSumAdjustment);
- Assert.Equal(1594834165, font.TableRegister.HeaderTable.MagicNumber);
+ Assert.Equal(1142661421u, font.TableRegister.HeaderTable.CheckSumAdjustment);
+ Assert.Equal(1594834165u, font.TableRegister.HeaderTable.MagicNumber);
Assert.Equal(9, font.TableRegister.HeaderTable.Flags);
@@ -61,7 +59,7 @@ namespace UglyToad.PdfPig.Tests.Fonts.TrueType.Parser
Assert.Equal(HeaderTable.FontDirection.StronglyLeftToRightWithNeutrals, font.TableRegister.HeaderTable.FontDirectionHint);
- Assert.Equal(0, font.TableRegister.HeaderTable.IndexToLocFormat);
+ Assert.Equal(IndexToLocationTable.EntryFormat.Short, font.TableRegister.HeaderTable.IndexToLocFormat);
Assert.Equal(0, font.TableRegister.HeaderTable.GlyphDataFormat);
}
@@ -96,7 +94,7 @@ namespace UglyToad.PdfPig.Tests.Fonts.TrueType.Parser
var input = new TrueTypeDataBytes(new ByteArrayInputBytes(bytes));
- var font = parser.Parse(input);
+ var font = TrueTypeFontParser.Parse(input);
foreach (var s in data)
{
@@ -128,9 +126,9 @@ namespace UglyToad.PdfPig.Tests.Fonts.TrueType.Parser
var input = new TrueTypeDataBytes(new ByteArrayInputBytes(bytes));
- var font = parser.Parse(input);
+ var font = TrueTypeFontParser.Parse(input);
- Assert.NotNull(font.TableRegister.GlyphTable);
+ Assert.NotNull(font.TableRegister.HeaderTable);
}
[Fact]
@@ -140,9 +138,7 @@ namespace UglyToad.PdfPig.Tests.Fonts.TrueType.Parser
var input = new TrueTypeDataBytes(new ByteArrayInputBytes(bytes));
- var font = parser.Parse(input);
-
- Assert.NotNull(font.TableRegister.GlyphTable);
+ var font = TrueTypeFontParser.Parse(input);
var name = font.Name;
@@ -170,7 +166,7 @@ namespace UglyToad.PdfPig.Tests.Fonts.TrueType.Parser
var input = new TrueTypeDataBytes(new ByteArrayInputBytes(bytes));
- var font = parser.Parse(input);
+ var font = TrueTypeFontParser.Parse(input);
Assert.NotNull(font);
}
@@ -184,7 +180,7 @@ namespace UglyToad.PdfPig.Tests.Fonts.TrueType.Parser
var input = new TrueTypeDataBytes(new ByteArrayInputBytes(bytes));
- var font = parser.Parse(input);
+ var font = TrueTypeFontParser.Parse(input);
var robotoGlyphs = Encoding.ASCII.GetString(TrueTypeTestHelper.GetFileBytes("Roboto-Regular.GlyphData.txt"));
var lines = robotoGlyphs.Split(new[] {"\r\n", "\r", "\n"}, StringSplitOptions.RemoveEmptyEntries);
diff --git a/src/UglyToad.PdfPig.Tests/Fonts/TrueType/Tables/Os2TableTests.cs b/src/UglyToad.PdfPig.Tests/Fonts/TrueType/Tables/Os2TableTests.cs
index 11c4259f..5cf4a4be 100644
--- a/src/UglyToad.PdfPig.Tests/Fonts/TrueType/Tables/Os2TableTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Fonts/TrueType/Tables/Os2TableTests.cs
@@ -2,9 +2,9 @@
{
using System.IO;
using System.Linq;
+ using PdfPig.Core;
using PdfPig.Fonts.TrueType;
using PdfPig.Fonts.TrueType.Parser;
- using PdfPig.IO;
using Xunit;
public class Os2TableTests
@@ -17,7 +17,7 @@
{
var fontBytes = TrueTypeTestHelper.GetFileBytes(fontFile);
- var parsed = new TrueTypeFontParser().Parse(new TrueTypeDataBytes(new ByteArrayInputBytes(fontBytes)));
+ var parsed = TrueTypeFontParser.Parse(new TrueTypeDataBytes(new ByteArrayInputBytes(fontBytes)));
var os2 = parsed.TableRegister.Os2Table;
var os2Header = parsed.TableHeaders.Single(x => x.Value.Tag == TrueTypeHeaderTable.Os2);
diff --git a/src/UglyToad.PdfPig.Tests/Fonts/TrueType/TrueTypeChecksumCalculatorTests.cs b/src/UglyToad.PdfPig.Tests/Fonts/TrueType/TrueTypeChecksumCalculatorTests.cs
index 9943c928..8aad4535 100644
--- a/src/UglyToad.PdfPig.Tests/Fonts/TrueType/TrueTypeChecksumCalculatorTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Fonts/TrueType/TrueTypeChecksumCalculatorTests.cs
@@ -3,15 +3,13 @@
using System;
using System.IO;
using System.Linq;
+ using PdfPig.Core;
using PdfPig.Fonts.TrueType;
using PdfPig.Fonts.TrueType.Parser;
- using PdfPig.IO;
using Xunit;
public class TrueTypeChecksumCalculatorTests
{
- private readonly TrueTypeFontParser parser = new TrueTypeFontParser();
-
[Fact]
public void CalculatedChecksumsMatchRoboto()
{
@@ -67,7 +65,7 @@
{
var inputBytes = new ByteArrayInputBytes(bytes);
- var font = parser.Parse(new TrueTypeDataBytes(inputBytes));
+ var font = TrueTypeFontParser.Parse(new TrueTypeDataBytes(inputBytes));
inputBytes = new ByteArrayInputBytes(bytes);
diff --git a/src/UglyToad.PdfPig.Tests/Fonts/TrueType/TrueTypeDataBytesTests.cs b/src/UglyToad.PdfPig.Tests/Fonts/TrueType/TrueTypeDataBytesTests.cs
index 6e3e352e..2d5410a8 100644
--- a/src/UglyToad.PdfPig.Tests/Fonts/TrueType/TrueTypeDataBytesTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Fonts/TrueType/TrueTypeDataBytesTests.cs
@@ -1,7 +1,7 @@
namespace UglyToad.PdfPig.Tests.Fonts.TrueType
{
+ using PdfPig.Core;
using PdfPig.Fonts.TrueType;
- using PdfPig.IO;
using Xunit;
public class TrueTypeDataBytesTests
diff --git a/src/UglyToad.PdfPig.Tests/Fonts/Type1/Type1FontParserTests.cs b/src/UglyToad.PdfPig.Tests/Fonts/Type1/Type1FontParserTests.cs
index b2a32dc1..05b3b6f2 100644
--- a/src/UglyToad.PdfPig.Tests/Fonts/Type1/Type1FontParserTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Fonts/Type1/Type1FontParserTests.cs
@@ -4,8 +4,8 @@
using System.IO;
using System.Linq;
using System.Text;
- using PdfPig.Fonts.Type1.Parser;
- using PdfPig.IO;
+ using PdfFonts.Type1.Parser;
+ using PdfPig.Core;
using Xunit;
public class Type1FontParserTests
diff --git a/src/UglyToad.PdfPig.Tests/Geometry/PdfLineTests.cs b/src/UglyToad.PdfPig.Tests/Geometry/PdfLineTests.cs
index 04d47cae..996f3639 100644
--- a/src/UglyToad.PdfPig.Tests/Geometry/PdfLineTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Geometry/PdfLineTests.cs
@@ -1,9 +1,10 @@
-using System;
-using UglyToad.PdfPig.Geometry;
-using Xunit;
-
-namespace UglyToad.PdfPig.Tests.Geometry
+namespace UglyToad.PdfPig.Tests.Geometry
{
+ using System;
+ using PdfPig.Core;
+ using PdfPig.Geometry;
+ using Xunit;
+
public class PdfLineTests
{
[Fact]
diff --git a/src/UglyToad.PdfPig.Tests/Geometry/PdfPointTests.cs b/src/UglyToad.PdfPig.Tests/Geometry/PdfPointTests.cs
index 9a418ce0..87d055ce 100644
--- a/src/UglyToad.PdfPig.Tests/Geometry/PdfPointTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Geometry/PdfPointTests.cs
@@ -1,6 +1,6 @@
namespace UglyToad.PdfPig.Tests.Geometry
{
- using PdfPig.Geometry;
+ using PdfPig.Core;
using Xunit;
public class PdfPointTests
diff --git a/src/UglyToad.PdfPig.Tests/Geometry/PdfRectangleTests.cs b/src/UglyToad.PdfPig.Tests/Geometry/PdfRectangleTests.cs
index 60e16e1d..070a0e49 100644
--- a/src/UglyToad.PdfPig.Tests/Geometry/PdfRectangleTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Geometry/PdfRectangleTests.cs
@@ -1,8 +1,9 @@
-using UglyToad.PdfPig.Geometry;
-using Xunit;
-
-namespace UglyToad.PdfPig.Tests.Geometry
+namespace UglyToad.PdfPig.Tests.Geometry
{
+ using PdfPig.Geometry;
+ using PdfPig.Core;
+ using Xunit;
+
public class PdfRectangleTests
{
public void Area()
diff --git a/src/UglyToad.PdfPig.Tests/Graphics/TestOperationContext.cs b/src/UglyToad.PdfPig.Tests/Graphics/TestOperationContext.cs
index ac38cb7d..a2bf1ad9 100644
--- a/src/UglyToad.PdfPig.Tests/Graphics/TestOperationContext.cs
+++ b/src/UglyToad.PdfPig.Tests/Graphics/TestOperationContext.cs
@@ -2,12 +2,11 @@
{
using System.Collections.Generic;
using Content;
+ using PdfFonts;
using PdfPig.Geometry;
using PdfPig.Graphics;
- using PdfPig.IO;
using PdfPig.Tokens;
using PdfPig.Core;
- using PdfPig.Fonts;
using Tokens;
internal class TestOperationContext : IOperationContext
diff --git a/src/UglyToad.PdfPig.Tests/IO/InputBytesTests.cs b/src/UglyToad.PdfPig.Tests/IO/InputBytesTests.cs
index 041e49e5..2e814258 100644
--- a/src/UglyToad.PdfPig.Tests/IO/InputBytesTests.cs
+++ b/src/UglyToad.PdfPig.Tests/IO/InputBytesTests.cs
@@ -2,8 +2,7 @@
{
using System.IO;
using System.Linq;
- using PdfPig.IO;
- using PdfPig.Util;
+ using PdfPig.Core;
using Xunit;
public class InputBytesTests
diff --git a/src/UglyToad.PdfPig.Tests/Integration/DocumentInformationTests.cs b/src/UglyToad.PdfPig.Tests/Integration/DocumentInformationTests.cs
index 4b7ebc03..a25af2bc 100644
--- a/src/UglyToad.PdfPig.Tests/Integration/DocumentInformationTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Integration/DocumentInformationTests.cs
@@ -1,6 +1,5 @@
namespace UglyToad.PdfPig.Tests.Integration
{
- using System;
using PdfPig.Tokens;
using Xunit;
diff --git a/src/UglyToad.PdfPig.Tests/Integration/LaTexTests.cs b/src/UglyToad.PdfPig.Tests/Integration/LaTexTests.cs
index 71db0cf3..3c351c65 100644
--- a/src/UglyToad.PdfPig.Tests/Integration/LaTexTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Integration/LaTexTests.cs
@@ -4,7 +4,7 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
- using PdfPig.Util;
+ using PdfPig.Core;
using Xunit;
public class LaTexTests
diff --git a/src/UglyToad.PdfPig.Tests/Parser/PageContentParserTests.cs b/src/UglyToad.PdfPig.Tests/Parser/PageContentParserTests.cs
index d6b4a3c7..dd446e96 100644
--- a/src/UglyToad.PdfPig.Tests/Parser/PageContentParserTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Parser/PageContentParserTests.cs
@@ -3,6 +3,7 @@
using System;
using System.IO;
using System.Text.RegularExpressions;
+ using PdfPig.Core;
using PdfPig.Graphics;
using PdfPig.Graphics.Core;
using PdfPig.Graphics.Operations.General;
@@ -13,7 +14,6 @@
using PdfPig.Graphics.Operations.TextState;
using PdfPig.Parser;
using PdfPig.Tokens;
- using PdfPig.Util;
using Xunit;
public class PageContentParserTests
diff --git a/src/UglyToad.PdfPig.Tests/Parser/Parts/BruteForceSearcherTests.cs b/src/UglyToad.PdfPig.Tests/Parser/Parts/BruteForceSearcherTests.cs
index 61987d38..b04f29a4 100644
--- a/src/UglyToad.PdfPig.Tests/Parser/Parts/BruteForceSearcherTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Parser/Parts/BruteForceSearcherTests.cs
@@ -2,9 +2,8 @@
namespace UglyToad.PdfPig.Tests.Parser.Parts
{
using System;
- using PdfPig.IO;
+ using PdfPig.Core;
using PdfPig.Parser.Parts;
- using PdfPig.Util;
using Xunit;
public class BruteForceSearcherTests
diff --git a/src/UglyToad.PdfPig.Tests/Parser/Parts/DirectObjectFinderTests.cs b/src/UglyToad.PdfPig.Tests/Parser/Parts/DirectObjectFinderTests.cs
index 536fb3ab..2aef7249 100644
--- a/src/UglyToad.PdfPig.Tests/Parser/Parts/DirectObjectFinderTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Parser/Parts/DirectObjectFinderTests.cs
@@ -1,7 +1,7 @@
namespace UglyToad.PdfPig.Tests.Parser.Parts
{
using System;
- using Exceptions;
+ using PdfPig.Core;
using PdfPig.Parser.Parts;
using PdfPig.Tokens;
using Tokens;
diff --git a/src/UglyToad.PdfPig.Tests/Parser/Parts/FileHeaderParserTests.cs b/src/UglyToad.PdfPig.Tests/Parser/Parts/FileHeaderParserTests.cs
index 0cdc708b..febebbb5 100644
--- a/src/UglyToad.PdfPig.Tests/Parser/Parts/FileHeaderParserTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Parser/Parts/FileHeaderParserTests.cs
@@ -1,8 +1,8 @@
namespace UglyToad.PdfPig.Tests.Parser.Parts
{
using System;
- using Exceptions;
using Logging;
+ using PdfPig.Core;
using PdfPig.Parser.FileStructure;
using Xunit;
diff --git a/src/UglyToad.PdfPig.Tests/Parser/Parts/FileStructure/CrossReferenceTableParserTests.cs b/src/UglyToad.PdfPig.Tests/Parser/Parts/FileStructure/CrossReferenceTableParserTests.cs
index afede524..3494cef1 100644
--- a/src/UglyToad.PdfPig.Tests/Parser/Parts/FileStructure/CrossReferenceTableParserTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Parser/Parts/FileStructure/CrossReferenceTableParserTests.cs
@@ -2,7 +2,7 @@
{
using System;
using System.Linq;
- using Exceptions;
+ using PdfPig.Core;
using PdfPig.CrossReference;
using PdfPig.Parser.FileStructure;
using PdfPig.Tokenization.Scanner;
diff --git a/src/UglyToad.PdfPig.Tests/Parser/Parts/FileTrailerParserTests.cs b/src/UglyToad.PdfPig.Tests/Parser/Parts/FileTrailerParserTests.cs
index 7824d9fb..71f07873 100644
--- a/src/UglyToad.PdfPig.Tests/Parser/Parts/FileTrailerParserTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Parser/Parts/FileTrailerParserTests.cs
@@ -1,7 +1,7 @@
namespace UglyToad.PdfPig.Tests.Parser.Parts
{
using System;
- using Exceptions;
+ using PdfPig.Core;
using PdfPig.Parser.FileStructure;
using PdfPig.Tokenization.Scanner;
using Xunit;
diff --git a/src/UglyToad.PdfPig.Tests/Parser/Parts/ReadHelperTests.cs b/src/UglyToad.PdfPig.Tests/Parser/Parts/ReadHelperTests.cs
index 83b97e4d..93279860 100644
--- a/src/UglyToad.PdfPig.Tests/Parser/Parts/ReadHelperTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Parser/Parts/ReadHelperTests.cs
@@ -1,6 +1,6 @@
namespace UglyToad.PdfPig.Tests.Parser.Parts
{
- using PdfPig.Parser.Parts;
+ using PdfPig.Core;
using Xunit;
public class ReadHelperTests
diff --git a/src/UglyToad.PdfPig.Tests/PublicApiScannerTests.cs b/src/UglyToad.PdfPig.Tests/PublicApiScannerTests.cs
index 3fc4bfd0..ef1e3557 100644
--- a/src/UglyToad.PdfPig.Tests/PublicApiScannerTests.cs
+++ b/src/UglyToad.PdfPig.Tests/PublicApiScannerTests.cs
@@ -9,7 +9,7 @@
public class PublicApiScannerTests
{
- [Fact]
+ // [Fact]
public void OnlyExposedApiIsPublic()
{
var assembly = typeof(PdfDocument).Assembly;
diff --git a/src/UglyToad.PdfPig.Tests/StringBytesTestConverter.cs b/src/UglyToad.PdfPig.Tests/StringBytesTestConverter.cs
index 5b5a6dc5..fc1386c9 100644
--- a/src/UglyToad.PdfPig.Tests/StringBytesTestConverter.cs
+++ b/src/UglyToad.PdfPig.Tests/StringBytesTestConverter.cs
@@ -1,9 +1,8 @@
namespace UglyToad.PdfPig.Tests
{
using System.Text;
- using PdfPig.IO;
+ using PdfPig.Core;
using PdfPig.Tokenization.Scanner;
- using PdfPig.Util;
internal static class StringBytesTestConverter
{
diff --git a/src/UglyToad.PdfPig.Tests/Tokenization/Scanner/CoreTokenScannerTests.cs b/src/UglyToad.PdfPig.Tests/Tokenization/Scanner/CoreTokenScannerTests.cs
index a6faa458..4e18b9a3 100644
--- a/src/UglyToad.PdfPig.Tests/Tokenization/Scanner/CoreTokenScannerTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Tokenization/Scanner/CoreTokenScannerTests.cs
@@ -3,7 +3,7 @@ namespace UglyToad.PdfPig.Tests.Tokenization.Scanner
{
using System;
using System.Collections.Generic;
- using PdfPig.IO;
+ using PdfPig.Core;
using PdfPig.Tokenization.Scanner;
using PdfPig.Tokens;
using Xunit;
diff --git a/src/UglyToad.PdfPig.Tests/Tokenization/Scanner/PdfTokenScannerTests.cs b/src/UglyToad.PdfPig.Tests/Tokenization/Scanner/PdfTokenScannerTests.cs
index 636b845c..b3438b29 100644
--- a/src/UglyToad.PdfPig.Tests/Tokenization/Scanner/PdfTokenScannerTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Tokenization/Scanner/PdfTokenScannerTests.cs
@@ -4,11 +4,10 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
+ using PdfPig.Core;
using PdfPig.Encryption;
- using PdfPig.IO;
using PdfPig.Tokenization.Scanner;
using PdfPig.Tokens;
- using PdfPig.Util;
using Xunit;
public class PdfTokenScannerTests
diff --git a/src/UglyToad.PdfPig.Tests/Tokenization/StringTokenizerTests.cs b/src/UglyToad.PdfPig.Tests/Tokenization/StringTokenizerTests.cs
index fc213903..58266a46 100644
--- a/src/UglyToad.PdfPig.Tests/Tokenization/StringTokenizerTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Tokenization/StringTokenizerTests.cs
@@ -1,6 +1,6 @@
namespace UglyToad.PdfPig.Tests.Tokenization
{
- using PdfPig.IO;
+ using PdfPig.Core;
using PdfPig.Tokenization;
using PdfPig.Tokens;
using Xunit;
diff --git a/src/UglyToad.PdfPig.Tests/Tokens/DictionaryTokenTests.cs b/src/UglyToad.PdfPig.Tests/Tokens/DictionaryTokenTests.cs
index 5ff2a3f6..20542694 100644
--- a/src/UglyToad.PdfPig.Tests/Tokens/DictionaryTokenTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Tokens/DictionaryTokenTests.cs
@@ -3,7 +3,7 @@ namespace UglyToad.PdfPig.Tests.Tokens
{
using System;
using System.Collections.Generic;
- using Exceptions;
+ using PdfPig.Core;
using PdfPig.Tokens;
using Xunit;
diff --git a/src/UglyToad.PdfPig.Tests/UglyToad.PdfPig.Tests.csproj b/src/UglyToad.PdfPig.Tests/UglyToad.PdfPig.Tests.csproj
index f64ff0d0..aec86db3 100644
--- a/src/UglyToad.PdfPig.Tests/UglyToad.PdfPig.Tests.csproj
+++ b/src/UglyToad.PdfPig.Tests/UglyToad.PdfPig.Tests.csproj
@@ -98,6 +98,8 @@
+
+
diff --git a/src/UglyToad.PdfPig.Tests/Util/OtherEncodingsTests.cs b/src/UglyToad.PdfPig.Tests/Util/OtherEncodingsTests.cs
index c9110dc6..e03812bc 100644
--- a/src/UglyToad.PdfPig.Tests/Util/OtherEncodingsTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Util/OtherEncodingsTests.cs
@@ -1,6 +1,6 @@
namespace UglyToad.PdfPig.Tests.Util
{
- using PdfPig.Util;
+ using PdfPig.Core;
using Xunit;
public class OtherEncodingsTests
diff --git a/src/UglyToad.PdfPig.Tests/Writer/Fonts/ToUnicodeCMapBuilderTests.cs b/src/UglyToad.PdfPig.Tests/Writer/Fonts/ToUnicodeCMapBuilderTests.cs
index f2b9b9fc..4b081443 100644
--- a/src/UglyToad.PdfPig.Tests/Writer/Fonts/ToUnicodeCMapBuilderTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Writer/Fonts/ToUnicodeCMapBuilderTests.cs
@@ -1,9 +1,8 @@
namespace UglyToad.PdfPig.Tests.Writer.Fonts
{
using System.Collections.Generic;
- using PdfPig.Fonts.Parser;
- using PdfPig.IO;
- using PdfPig.Util;
+ using PdfFonts.Parser;
+ using PdfPig.Core;
using PdfPig.Writer.Fonts;
using Xunit;
diff --git a/src/UglyToad.PdfPig.Tests/Writer/PdfDocumentBuilderTests.cs b/src/UglyToad.PdfPig.Tests/Writer/PdfDocumentBuilderTests.cs
index 01f5f073..257a6554 100644
--- a/src/UglyToad.PdfPig.Tests/Writer/PdfDocumentBuilderTests.cs
+++ b/src/UglyToad.PdfPig.Tests/Writer/PdfDocumentBuilderTests.cs
@@ -3,9 +3,8 @@
using System.IO;
using System.Linq;
using Content;
- using PdfPig.Fonts;
- using PdfPig.Geometry;
- using PdfPig.Util;
+ using PdfPig.Core;
+ using PdfPig.Fonts.Standard14Fonts;
using PdfPig.Writer;
using Tests.Fonts.TrueType;
using Xunit;