diff options
author | Albert Astals Cid <aacid@kde.org> | 2020-01-05 22:41:32 +0100 |
---|---|---|
committer | Albert Astals Cid <tsdgeos@yahoo.es> | 2020-01-05 22:44:45 +0000 |
commit | cb5bece4f51040cf1d3be5a32af83c989d9c7885 (patch) | |
tree | 09dafaf7135abde5bd76dd6dd8661b3717914e23 | |
parent | fb9ada7648cb3adb0b8791bab098de1e89c75226 (diff) |
pdftohtml: Don't substract -2 to font size without any reason
-rw-r--r-- | utils/HtmlFonts.cc | 2 | ||||
-rw-r--r-- | utils/HtmlOutputDev.cc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/utils/HtmlFonts.cc b/utils/HtmlFonts.cc index a21e0ac2..efd14cd2 100644 --- a/utils/HtmlFonts.cc +++ b/utils/HtmlFonts.cc @@ -117,7 +117,7 @@ HtmlFont::HtmlFont(GfxFont *font, int _size, GfxRGB rgb){ lineSize = -1; - size=(_size-1); + size=_size; italic = false; bold = false; rotOrSkewed = false; diff --git a/utils/HtmlOutputDev.cc b/utils/HtmlOutputDev.cc index c86587ef..a8af0ea9 100644 --- a/utils/HtmlOutputDev.cc +++ b/utils/HtmlOutputDev.cc @@ -17,7 +17,7 @@ // All changes made under the Poppler project to this file are licensed // under GPL version 2 or later // -// Copyright (C) 2005-2013, 2016-2019 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2005-2013, 2016-2020 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2008 Kjartan Maraas <kmaraas@gnome.org> // Copyright (C) 2008 Boris Toloknov <tlknv@yandex.ru> // Copyright (C) 2008 Haruyuki Kawabe <Haruyuki.Kawabe@unisys.co.jp> @@ -183,7 +183,7 @@ HtmlString::HtmlString(GfxState *state, double fontSize, HtmlFontAccu* _fonts) : yMax = y - descent * fontSize; GfxRGB rgb; state->getFillRGB(&rgb); - HtmlFont hfont=HtmlFont(font, static_cast<int>(fontSize-1), rgb); + HtmlFont hfont=HtmlFont(font, static_cast<int>(fontSize), rgb); if (isMatRotOrSkew(state->getTextMat())) { double normalizedMatrix[4]; memcpy(normalizedMatrix, state->getTextMat(), sizeof(normalizedMatrix)); |