mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-06-28 15:30:17 +08:00
Rebase
This commit is contained in:
parent
b2fa76a756
commit
6ccf41f36c
@ -12,7 +12,8 @@ namespace UglyToad.PdfPig.Tests.Tokens
|
||||
[Fact]
|
||||
public void NullDictionaryThrows()
|
||||
{
|
||||
Action action = () => new DictionaryToken(null);
|
||||
IReadOnlyDictionary<NameToken, IToken> dictionary = null;
|
||||
Action action = () => new DictionaryToken(dictionary);
|
||||
|
||||
Assert.Throws<ArgumentNullException>(action);
|
||||
}
|
||||
|
@ -75,9 +75,8 @@
|
||||
var transformedPdfBounds = PerformantRectangleTransformer
|
||||
.Transform(renderingMatrix, textMatrix, transformationMatrix, new PdfRectangle(0, 0, characterBoundingBox.Width, 0));
|
||||
|
||||
|
||||
Letter letter = null;
|
||||
if (Diacritics.IsInCombiningDiacriticRange(unicode) && bytes.CurrentOffset > 0 && letters.Count > 0)
|
||||
if (Diacritics.IsInCombiningDiacriticRange(unicode) && currentOffset > 0 && letters.Count > 0)
|
||||
{
|
||||
var attachTo = letters[letters.Count - 1];
|
||||
|
||||
@ -103,6 +102,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
var currentState = GetCurrentState(); // TODO - pass stroking and text rendering mode
|
||||
|
||||
// If we did not create a letter for a combined diacritic, create one here.
|
||||
if (letter == null)
|
||||
{
|
||||
@ -118,7 +119,7 @@
|
||||
currentState.CurrentStrokingColor,
|
||||
currentState.CurrentNonStrokingColor,
|
||||
pointSize,
|
||||
textSequence);
|
||||
TextSequence);
|
||||
}
|
||||
|
||||
letters.Add(letter);
|
||||
|
Loading…
Reference in New Issue
Block a user