Bug 167043 - Print preview picks the text color from the "Options > Appearance > Items > Font Color" option (should be WYSIWYG even with customized UI Appearance color)
Summary: Print preview picks the text color from the "Options > Appearance > Items > F...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.2.4.3 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Print-Preview LibreOffice-Themes
  Show dependency treegraph
 
Reported: 2025-06-16 09:53 UTC by joseph.fishbeck
Modified: 2025-06-19 11:50 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Standard editing interface with custom colors for document text and background (788.49 KB, image/png)
2025-06-16 10:03 UTC, joseph.fishbeck
Details
Print Preview mode with incorrect (red) color for document text and correct (white) background (656.81 KB, image/png)
2025-06-16 10:04 UTC, joseph.fishbeck
Details
test doc prepared on Win11 with recent master against 26.2, Options -> Appearance application 'Font color' set Teal (667.20 KB, application/x-zip-compressed)
2025-06-19 11:25 UTC, V Stuart Foote
Details

Note You need to log in before you can comment on or make changes to this bug.
Description joseph.fishbeck 2025-06-16 09:53:40 UTC
Description:
This problem is very similar to bug 101142 (https://bugs.documentfoundation.org/show_bug.cgi?id=101142). 

When viewing a document in the print preview mode, the text color is the color the user chose in Tools > Options > Appearance > Items > Font Color. 

For instance, I have the Items: Font Color set to color #5B4636 and the Items: Document Background set color #F4ECD8. When I view the document in the print preview mode, the document background is the correct paper color (white), but the font color is the custom appearance color (#5B4636) when it should be black.

I can confirm that the document would "print" properly with a white background and black text by creating a PDF of the document using Microsoft Print to PDF.

Steps to Reproduce:
1. Select Tools > Options > Appearance. 
2. Select New to create a new LibreOffice theme. Then, fill the Name of Color Scheme field in the Save Scheme dialog. Finally, select OK. 
3. Select the System radio button in the Options section of the interface.
4. Select Font Color in the Items drop-down list. Then, select the Color radio button. Finally, select a distinct color in the color picker drop-down pane. (For instance, select #F44336 red.)
5. Select Apply. 
6. If the application instructs you to restart the application, select any options to do so. 
7. Open or reopen and edit a text document. 
8. Select File > Print Preview.

Optionally, also select Document Background in the Items drop-down list and select a distinct color for this interface item as well to verify that the Print Preview mode shows the text color INCORRECTLY (the theme color) and the document background color CORRECTLY (white). 

Actual Results:
The text color in the Print Preview mode is incorrect (matching the Items: Font Color selection). The document background color is correct (white). 

Expected Results:
The text color in the Print Preview mode should be correct (black, or any color the user chooses through text editing in the editor mode using the Font Color drop-down pane). 


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Following the steps to reproduce in safe mode and standard configuration produces the same result.
Comment 1 joseph.fishbeck 2025-06-16 10:03:42 UTC
Created attachment 201305 [details]
Standard editing interface with custom colors for document text and background

Colors chosen in the standard editing interface for demonstrative purposes (blue background, red text).
Comment 2 joseph.fishbeck 2025-06-16 10:04:45 UTC
Created attachment 201306 [details]
Print Preview mode with incorrect (red) color for document text and correct (white) background
Comment 3 Jessica 2025-06-17 07:32:09 UTC
I can't reproduce the bug in 

Version: 25.2.4.3 (X86_64) / LibreOffice Community
Build ID: 33e196637044ead23f5c3226cde09b47731f7e27
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Vulkan; VCL: win
Locale: en-GB (de_DE); UI: en-GB
Calc: threaded
Comment 4 Heiko Tietze 2025-06-17 07:35:49 UTC
(In reply to joseph.fishbeck from comment #0)
> Actual Results:
> The text color in the Print Preview mode is incorrect (matching the Items:
> Font Color selection). The document background color is correct (white). 
Cannot confirm. Font color is black on white despite the document appearance is red. Please double check that your paragraph/character font color is set to Automatic.

Version: 25.2.4.3 (X86_64) / LibreOffice Community
Build ID: 520(Build:3)
CPU threads: 32; OS: Linux 6.15; UI render: default; VCL: kf6 (cairo+xcb)
Locale: de-DE (en_US.UTF-8); UI: en-US
25.2.4-2
Calc: threaded
Comment 5 joseph.fishbeck 2025-06-17 10:28:20 UTC
(In reply to Heiko Tietze from comment #4)
> (In reply to joseph.fishbeck from comment #0)
> > Actual Results:
> > The text color in the Print Preview mode is incorrect (matching the Items:
> > Font Color selection). The document background color is correct (white). 
> Cannot confirm. Font color is black on white despite the document appearance
> is red. Please double check that your paragraph/character font color is set
> to Automatic.
> 
> Version: 25.2.4.3 (X86_64) / LibreOffice Community
> Build ID: 520(Build:3)
> CPU threads: 32; OS: Linux 6.15; UI render: default; VCL: kf6 (cairo+xcb)
> Locale: de-DE (en_US.UTF-8); UI: en-US
> 25.2.4-2
> Calc: threaded

I selected the whole text and then chose Font Color > Automatic. Unfortunately, the issue persists.
Comment 6 Heiko Tietze 2025-06-17 10:29:59 UTC
Please share an example.
Comment 7 joseph.fishbeck 2025-06-19 09:23:02 UTC
(In reply to Heiko Tietze from comment #6)
> Please share an example.

Are you requesting other screenshots in addition to the two screenshots that I added as attachments to this bug? 

This issue occurs when I switch to Appearance > Font Color #5B4636 and also when I switch to #F44336. I suspect that it would occur if I applied different colors in the Font Color color picker drop-down pane.

Does anyone have recommendations for troubleshooting this other than User Profile Reset?
Comment 8 V Stuart Foote 2025-06-19 11:25:57 UTC
Created attachment 201355 [details]
test doc prepared on Win11 with recent master against 26.2, Options -> Appearance  application 'Font color' set Teal

(In reply to joseph.fishbeck from comment #7)
> (In reply to Heiko Tietze from comment #6)
> > Please share an example.
> 
> Are you requesting other screenshots in addition to the two screenshots that
> I added as attachments to this bug? 
> 

We wanted the source document so we could look at the text-style assignments of the document.

However, I can reproduce the issue on Win build of recent master.

A font color applied as affect from the Character... dialog correctly is applied in the print preview--and is actually printed (to physical color printer, gs based print, or MS Print-to-PDF virtual print driver).

Alternatively, and the issue here, the Application 'Font color' assigned in the Tools -> Options -> Appearance panel 'Customizations' list box *is* being rendered in the LO Print Preview viewing mode.

That appearance customization color *does not actually print*, nor does it render in the small preview thumbnail of the 'Print' dialog. The content remains WYSIWYG--just the use of the Application color in the Print preview mode is unhelpful.

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 497a4090de8a33704df4101fc078a48c4cf71101
CPU threads: 28; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 9 Heiko Tietze 2025-06-19 11:50:58 UTC
I still cannot reproduce the issue. Str:

* Tools > Options > Appearance: Font color = Red
* Dt+F3 => some dummy text with red font color
* File > Print preview => black on white

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 8c333826916948c9267d644df01b359870736bf1
CPU threads: 16; OS: Windows 11 X86_64 (build 22000); UI render: Skia/Raster; VCL: win
Locale: de-DE (en_DE); UI: en-US
Calc: threaded