Kaydet (Commit) e0bde4c5 authored tarafından Vort's avatar Vort Kaydeden (comit) Caolán McNamara

fdo#78427 PDF Import: Improve detection of bold italic font

(Bug #78427 is fixed only partially by this commit)

Change-Id: I080dca98a77a645c4c5ae19a9bbcae7d54179d3c
Reviewed-on: https://gerrit.libreoffice.org/9276Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 8ef22b95
......@@ -458,8 +458,8 @@ sal_Int32 Parser::parseFontCheckForString(
if (tolower(pCopy[i]) != pAttrib[i]
&& toupper(pCopy[i]) != pAttrib[i])
return 0;
rResult.isItalic = bItalic;
rResult.isBold = bBold;
rResult.isItalic |= bItalic;
rResult.isBold |= bBold;
return nAttribLen;
}
......@@ -488,6 +488,7 @@ void Parser::parseFontFamilyName( FontAttributes& rResult )
nLen -= 7;
}
// TODO: Looks like this block needs to be refactored
while( nLen )
{
if (parseFontRemoveSuffix(pCopy, nLen, RTL_CONSTASCII_STRINGPARAM("PSMT")))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment