sdext/source/pdfimport/wrapper/wrapper.cxx | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit 00bf67a99dcdb1549401f0b656e872e5c9762dc5 Author: Kevin Suo <suokunl...@126.com> AuthorDate: Sat Dec 3 19:54:59 2022 +0800 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sun Dec 4 14:56:40 2022 +0000 tdf#147246 sdext: font name returned by font descriptor may be... ... e.g. "NotoSerifCJKjp-Regular-VKana". Change-Id: I9818579c7678b0dad5ec2d2217ae59d573de88b4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143609 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sdext/source/pdfimport/wrapper/wrapper.cxx b/sdext/source/pdfimport/wrapper/wrapper.cxx index da506d9ceef8..e3e1c3aa8d04 100644 --- a/sdext/source/pdfimport/wrapper/wrapper.cxx +++ b/sdext/source/pdfimport/wrapper/wrapper.cxx @@ -630,6 +630,10 @@ void LineParser::readFont() aResult.familyName = aResult.familyName.copy(7, aResult.familyName.getLength() - 7); parseFontFamilyName(aResult); } + if (aResult.familyName.endsWithIgnoreAsciiCase("-VKana")) + { + parseFontFamilyName(aResult); + } // Font weight if (aFontReadResult.GetWeight() == WEIGHT_THIN)