Bug 107407 - DOCX: Shadow, emboss and engrave advanced text effects not imported correctly - <w14:shadow>, <w14:textOutline>, <w14:textFill>
Summary: DOCX: Shadow, emboss and engrave advanced text effects not imported correctly...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.4.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX-Character
  Show dependency treegraph
 
Reported: 2017-04-25 07:00 UTC by Yousuf Philips (jay) (retired)
Modified: 2025-11-21 17:05 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
sample (14.14 KB, application/wps-office.docx)
2017-04-25 07:00 UTC, Yousuf Philips (jay) (retired)
Details
Word 2010 vs Writer 5.4 (50.71 KB, image/png)
2017-04-25 07:00 UTC, Yousuf Philips (jay) (retired)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yousuf Philips (jay) (retired) 2017-04-25 07:00:06 UTC
Created attachment 132813 [details]
sample

Steps:
1) Open attached document
2) Notice that 'Shadow' isnt set to shadow, and 'Emboss' and 'Engrave' are set as Outline

This effects traditional and strict OOXML variants.

Version: 5.4.0.0.alpha0+
Build ID: f0340e3dca1091accdb71e0c566b96cdf9e0f791
CPU threads: 2; OS: Linux 4.4; UI render: default; VCL: gtk2; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2017-04-21_13:34:48
Locale: en-US (en_US.UTF-8); Calc: group
Comment 1 Yousuf Philips (jay) (retired) 2017-04-25 07:00:30 UTC
Created attachment 132814 [details]
Word 2010 vs Writer 5.4
Comment 2 Yousuf Philips (jay) (retired) 2017-04-25 22:33:15 UTC
If you are unable to see 'Emboss' and 'Engrave' they sometimes get imported as white.
Comment 3 Yousuf Philips (jay) (retired) 2017-04-26 00:15:32 UTC
So it seems that transitional and strict dont use the standard flags for these 3 font effects and instead render and save them with their new font effects engine.

https://www.tutorialspoint.com/word/images/text_effect.jpg
Comment 4 Buovjaga 2017-04-29 16:53:59 UTC
Confirmed.

Arch Linux 64-bit, KDE Plasma 5
Version: 5.4.0.0.alpha0+
Build ID: 9348b322a5c230dfcc2231661b73e480b130fcd9
CPU threads: 8; OS: Linux 4.10; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on April 28th 2016
Comment 5 QA Administrators 2018-04-30 02:32:30 UTC Comment hidden (obsolete)
Comment 6 Pokemon 2019-04-10 11:27:52 UTC Comment hidden (spam)
Comment 7 Buovjaga 2020-09-30 18:47:44 UTC
Still confirmed.

Arch Linux 64-bit
Version: 7.1.0.0.alpha0+
Build ID: 09c24681a3414092fde50ec0f617c9f7c79e8a61
CPU threads: 8; OS: Linux 5.8; UI render: default; VCL: kf5
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 30 September 2020

Have to keep this in mind to avoid being confused:

(In reply to Yousuf Philips (jay) (retired) from comment #2)
> If you are unable to see 'Emboss' and 'Engrave' they sometimes get imported
> as white.
Comment 8 QA Administrators 2022-11-27 03:37:42 UTC Comment hidden (obsolete, spam)
Comment 9 Justin L 2023-06-07 17:28:54 UTC
repro 7.6+
Comment 10 QA Administrators 2025-06-07 03:10:45 UTC Comment hidden (obsolete)
Comment 11 Yousuf Philips (jay) (retired) 2025-11-21 17:04:16 UTC
Still present.

Version: 25.8.3.2 (X86_64)
Build ID: 8ca8d55c161d602844f5428fa4b58097424e324e
CPU threads: 4; OS: Linux 6.11; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded


As mentioned in comment 3, this document uses does not utilize the basic level of these 3 text effects ( <w:shadow />, <w:emboss />, <w:imprint /> ), which LO already supports, but instead uses the new font effect engine which outputs tags for <w14:shadow>, <w14:textOutline>, and/or <w14:textFill> to make these more advantage text effects.

Shadow utilizes just the <w14:shadow> tag, but also has a child <w14:srgbClr> tag for the color. Looking at the character dialog, there is no means to set a color for the shadow, so possibly this is a limitation of LO and ODF.

<w14:shadow w14:blurRad="50800" w14:dist="38100" w14:dir="2700000" w14:sx="100000" w14:sy="100000" w14:kx="0" w14:ky="0" w14:algn="tl">
   <w14:srgbClr w14:val="000000">
      <w14:alpha w14:val="60000" />
   </w14:srgbClr>
</w14:shadow>

Emboss and Engrave utilize <w:outline>, <w:color>, <w14:shadow>, <w14:textOutline> and <w14:textFill> tags to make their effects. LO understands and applies <w:outline> and <w:color>, which is why the text 'Emboss' and 'Engrave' appear hidden, as text with a white outline is invisible in the document. Looking at the character dialog, there is no means to set a fill color of the text when outline is enabled, so possibly this is a limitation of LO and ODF.

The <w14:textOutline> and <w14:textFill> tags are identical between the two text effects and the difference is within the <w14:shadow> tag.

* Emboss *

<w14:shadow w14:blurRad="0" w14:dist="25400" w14:dir="13500000" w14:sx="0" w14:sy="0" w14:kx="0" w14:ky="0" w14:algn="none">
   <w14:srgbClr w14:val="000000">
      <w14:alpha w14:val="50000" />
   </w14:srgbClr>
</w14:shadow>

* Engrave *

<w14:shadow w14:blurRad="0" w14:dist="25400" w14:dir="2700000" w14:sx="0" w14:sy="0" w14:kx="0" w14:ky="0" w14:algn="none">
   <w14:srgbClr w14:val="000000">
      <w14:alpha w14:val="50000" />
   </w14:srgbClr>
</w14:shadow>