Skip to content

Commit

Permalink
1024: newline (or other control char below 0x20) should not switch fo…
Browse files Browse the repository at this point in the history
…nt (#1026)

Co-authored-by: Michael Pichler <[email protected]>
  • Loading branch information
pichlerm and Michael Pichler authored Jan 17, 2024
1 parent 73d7480 commit bb679d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openpdf/src/main/java/com/lowagie/text/pdf/PdfChunk.java
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public class PdfChunk {
*/

// Check if the chunk content is text
if (chunk.getContent().chars().allMatch(c -> ((c >= 0x20 && c <= 0xFF) || c == 0x09))) {
if (chunk.getContent().chars().allMatch(c -> (c >= 0x0 && c <= 0xFF))) {
// translation of the font-family to a PDF font-family
baseFont = f.getCalculatedBaseFont(false);
} else {
Expand Down

0 comments on commit bb679d0

Please sign in to comment.