Bug 78142 - FILEOPEN: WPS DOC - Font name and size not correctly imported into style
Summary: FILEOPEN: WPS DOC - Font name and size not correctly imported into style
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
3.4.6 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
Keywords: filter:doc
Depends on:
Blocks: DOC-Styles
  Show dependency treegraph
Reported: 2014-05-01 02:39 UTC by Yousuf Philips (jay) (retired)
Modified: 2020-04-24 06:39 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:

showing the title in LibO and word 2010 (38.42 KB, image/jpeg)
2014-05-01 02:39 UTC, Yousuf Philips (jay) (retired)
doc file produced by kingsoft writer (186.50 KB, application/msword)
2014-05-01 03:06 UTC, Yousuf Philips (jay) (retired)
another sample file from kingsoft writer (198.00 KB, application/msword)
2014-05-09 18:03 UTC, Yousuf Philips (jay) (retired)

Note You need to log in before you can comment on or make changes to this bug.
Description Yousuf Philips (jay) (retired) 2014-05-01 02:39:39 UTC
Created attachment 98273 [details]
showing the title in LibO and word 2010

I downloaded the .docx file found at < http://download.microsoft.com/documents/rus/microsoft4you/How_to_license_the_operating_system_Windows_8_new.docx > and opened it in Kingsoft Writer and then saved it as a doc file. Then i opened the saved file in LibO and the title text is set to Arial 10pt, rather than being Segoe UI Light 10pt, and the word 'Windows' is supposed to be 20pt. Tested on 3.6 - 4.3.
Comment 1 Yousuf Philips (jay) (retired) 2014-05-01 03:06:09 UTC
Created attachment 98274 [details]
doc file produced by kingsoft writer
Comment 2 Yousuf Philips (jay) (retired) 2014-05-01 03:08:44 UTC
Tested from 3.6 - 4.3
Comment 3 Jean-Baptiste Faure 2014-05-01 09:36:05 UTC
When I open the original docx file in LO, I get the right font.
The problem is clearly in Kingsoft Writer when it export the docx in doc. Please report the problem to this software.

Closing as NotOurBug.
Best regards. JBF
Comment 4 Yousuf Philips (jay) (retired) 2014-05-01 09:43:53 UTC
It is OurBug if word 2010 opens the converted kingsoft writer .doc correctly and LibO doesnt, which is what is provided in the attached jpeg file.
Comment 5 tommy27 2014-05-04 06:19:59 UTC
I confirm the issues you report in screenshot under Win7x64 using LibO

for the record the reporter tests were done under Linux Mint.
Comment 6 Yousuf Philips (jay) (retired) 2014-05-09 18:03:57 UTC
Created attachment 98772 [details]
another sample file from kingsoft writer
Comment 7 QA Administrators 2015-06-08 14:41:49 UTC Comment hidden (obsolete)
Comment 8 Buovjaga 2015-06-21 18:17:19 UTC

Win 7 Pro 64-bit Version:
Build ID: 3ecef8cedb215e49237a11607197edc91639bfcd
TinderBox: Win-x86@62-merge-TDF, Branch:MASTER, Time: 2015-06-19_23:16:58
Locale: fi-FI (fi_FI)
Comment 9 A (Andy) 2015-12-27 20:51:13 UTC
Reproducible with LO, Win 8.1
Comment 10 QA Administrators 2017-01-03 19:55:07 UTC Comment hidden (obsolete)
Comment 11 tommy27 2017-01-09 05:59:19 UTC
still present in LibO
Build ID: 215cbfb460326010737433c2020638e9388a88a4
CPU Threads: 4; OS Version: Windows 6.29; UI Render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2017-01-02_23:58:32
Locale: it-IT (it_IT); Calc: group
Comment 12 Yousuf Philips (jay) (retired) 2017-09-29 16:50:36 UTC
So the 'Document Title' paragraph style is being imported as Arial 10pt rather than Segoe UI Light 20pt. Once this is corrected the 'Windows 8' text issue is solved.

Build ID: 8d2a287da3abb0576512406227d0a3acd602123e
CPU threads: 2; OS: Linux 4.4; UI render: default; VCL: gtk2; 
Locale: en-US (en_US.UTF-8); Calc: group
Comment 13 QA Administrators 2018-09-30 02:47:07 UTC Comment hidden (obsolete, spam)
Comment 14 Justin L 2020-04-24 06:07:04 UTC
I don't think LO needs to aim at handling error correction exactly the same way as Word. If Word 2003 modifies the fontsize (reduce, then reset to 20) and saves the file, then LO opens it fine.

The WPS version is full of messages like
w/source/filter/ww8/ww8par2.cxx:3966: ::Import1Style[Document Title]
sw/source/filter/ww8/ww8scan.cxx:906: sprm longer than remaining bytes, doc or parser is wrong
Comment 15 Buovjaga 2020-04-24 06:39:16 UTC
Good point, let's close.