Skip to content

Commit cb85f88

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
1 parent 0131c79 commit cb85f88

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

layout/src/main/java/com/itextpdf/layout/font/FontSelectorStrategy.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,17 @@ public abstract class FontSelectorStrategy {
5656
protected String text;
5757
protected int index;
5858
protected final FontProvider provider;
59-
protected final FontSet additionalFonts;
59+
/**
60+
* @deprecated This field will be renamed to {@code additionalFonts} in iText Core 7.2.
61+
*/
62+
@Deprecated
63+
protected final FontSet tempFonts;
6064

6165
protected FontSelectorStrategy(String text, FontProvider provider, FontSet additionalFonts) {
6266
this.text = text;
6367
this.index = 0;
6468
this.provider = provider;
65-
this.additionalFonts = additionalFonts;
69+
this.tempFonts = additionalFonts;
6670
}
6771

6872
public boolean endOfText() {
@@ -81,6 +85,6 @@ public boolean endOfText() {
8185
* @see FontProvider#getPdfFont(FontInfo, FontSet)
8286
*/
8387
protected PdfFont getPdfFont(FontInfo fontInfo) {
84-
return provider.getPdfFont(fontInfo, additionalFonts);
88+
return provider.getPdfFont(fontInfo, tempFonts);
8589
}
8690
}

0 commit comments

Comments
 (0)