Skip to content

Commit 1a6fcf2

Browse files
yulian-gaponenkoars18wrw
authored andcommitted
Revert 'protected' FontSelectorStrategy#tempFonts field renaming
This field is part of public API which shall not be broken between minor releases. The field is deprecated and will be removed in next major release. DEVSIX-3918 Autoported commit. Original commit hash: [cb85f88]
1 parent a3059fa commit 1a6fcf2

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

itext/itext.layout/itext/layout/font/FontSelectorStrategy.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,14 @@ public abstract class FontSelectorStrategy {
6363

6464
protected internal readonly FontProvider provider;
6565

66-
protected internal readonly FontSet additionalFonts;
66+
[System.ObsoleteAttribute(@"This field will be renamed to additionalFonts in iText Core 7.2.")]
67+
protected internal readonly FontSet tempFonts;
6768

6869
protected internal FontSelectorStrategy(String text, FontProvider provider, FontSet additionalFonts) {
6970
this.text = text;
7071
this.index = 0;
7172
this.provider = provider;
72-
this.additionalFonts = additionalFonts;
73+
this.tempFonts = additionalFonts;
7374
}
7475

7576
public virtual bool EndOfText() {
@@ -85,7 +86,7 @@ public virtual bool EndOfText() {
8586
/// <returns>cached or just created PdfFont on success, otherwise null.</returns>
8687
/// <seealso cref="FontProvider.GetPdfFont(FontInfo, FontSet)"/>
8788
protected internal virtual PdfFont GetPdfFont(FontInfo fontInfo) {
88-
return provider.GetPdfFont(fontInfo, additionalFonts);
89+
return provider.GetPdfFont(fontInfo, tempFonts);
8990
}
9091
}
9192
}

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
f44b4984f831d850b3ffb0ae5e62c5db39a824d1
1+
cb85f889aa5a9c9f9561310513f594178a4dd2f1

0 commit comments

Comments
 (0)