You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduce #setFontFamily methods for setting preferred font families on elements
New setFontFamily methods replace the older setFont(String)
method (which is deprecated now). The older method took a
single String which was later processed by FontFamilySplitter.
Some of the symbols in contents of this String argument were
treated in a special way (like commas and quotes), also
font family names with non-latin letters were previously
ignored. New setFontFamily methods accept an array or list
of Strings where every string is treated directly as
desired font family name (without any preprocessing:
all symbols are treated as a part of font-family name).
DEVSIX-2525
Autoported commit.
Original commit hash: [7c42087a0]
Manual files:
layout/src/main/java/com/itextpdf/layout/font/FontFamilySplitter.java
@@ -160,7 +159,7 @@ public virtual void CustomFontProvider2() {
160
159
Documentdoc=newDocument(pdfDoc);
161
160
doc.SetFontProvider(fontProvider);
162
161
Paragraphparagraph=newParagraph("There is no default font (Helvetica) inside the used FontProvider's instance. So the first font, that has been added, should be selected. Here it's FreeSans."
Copy file name to clipboardExpand all lines: itext/itext.io/itext/io/LogMessageConstant.cs
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -133,7 +133,9 @@ public const String ENCRYPTED_PAYLOAD_FILE_SPEC_SHALL_HAVE_AFRELATIONSHIP_FILED_
133
133
134
134
publicconstStringFONT_HAS_INVALID_GLYPH="Font {0} has invalid glyph: {1}";
135
135
136
-
publicconstStringFONT_PROPERTY_MUST_BE_PDF_FONT_OBJECT="The Font Property must be a PdfFont object";
136
+
publicconstStringFONT_PROPERTY_MUST_BE_PDF_FONT_OBJECT="The \"Property.FONT\" property must be a PdfFont object in this context.";
137
+
138
+
publicconstStringFONT_PROPERTY_OF_STRING_TYPE_IS_DEPRECATED_USE_STRINGS_ARRAY_INSTEAD="The \"Property.FONT\" property with values of String type is deprecated, use String[] as property value type instead.";
137
139
138
140
publicconstStringFONT_SUBSET_ISSUE="Font subset issue. Full font will be embedded.";
0 commit comments