poppler/Annot.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) New commits: commit a238d170dd89e27efd44ea09126b84272c0ac47b Author: Tobias Deiminger <haxti...@posteo.de> Date: Fri Sep 7 16:30:48 2018 +0200
Add missing newline after Tf in setTextFont Until now AnnotAppearanceBuilder::setTextFont was only used to write last operation in apperance string for /DA. There you don't notice the missing delimiter. Delimiter will however be required in general, e.g. when writing appearance string for /AP. diff --git a/poppler/Annot.cc b/poppler/Annot.cc index 1ea14b43..61870bd5 100644 --- a/poppler/Annot.cc +++ b/poppler/Annot.cc @@ -1708,7 +1708,7 @@ void AnnotAppearanceBuilder::setDrawColor(const AnnotColor *drawColor, GBool fil void AnnotAppearanceBuilder::setTextFont(const Object &fontName, double fontSize) { if (fontName.isName() && strlen(fontName.getName()) > 0) - appearBuf->appendf("/{0:s} {1:.2f} Tf", fontName.getName(), fontSize); + appearBuf->appendf("/{0:s} {1:.2f} Tf\n", fontName.getName(), fontSize); } void AnnotAppearanceBuilder::setLineStyleForBorder(const AnnotBorder *border) { _______________________________________________ poppler mailing list poppler@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/poppler