diff --git a/src/UglyToad.PdfPig/PdfFonts/Simple/TrueTypeSimpleFont.cs b/src/UglyToad.PdfPig/PdfFonts/Simple/TrueTypeSimpleFont.cs index 46d06dc3..edf87ef9 100644 --- a/src/UglyToad.PdfPig/PdfFonts/Simple/TrueTypeSimpleFont.cs +++ b/src/UglyToad.PdfPig/PdfFonts/Simple/TrueTypeSimpleFont.cs @@ -148,6 +148,10 @@ width = boundingBoxPreTransform; } } + else if (widths?.Length > 0) + { + width = widths[0]; + } else { throw new InvalidOperationException($"Could not retrieve width for character code: {characterCode} in font {Name}.");