Bug 161610 - Writer substituted a font but added the name of a font not installed on the font menu and didn't show the substituted font
Summary: Writer substituted a font but added the name of a font not installed on the f...
Status: RESOLVED DUPLICATE of bug 96872
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.2.2.2 release
Hardware: x86 (IA32) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-17 07:42 UTC by Craig Webb
Modified: 2024-06-17 23:46 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Brao Khmer English Dictionary (561.77 KB, application/vnd.oasis.opendocument.text)
2024-06-17 07:42 UTC, Craig Webb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Webb 2024-06-17 07:42:43 UTC
Created attachment 194777 [details]
Brao Khmer English Dictionary

I was sent an ODT document of a Brao-Khmer-English dictionary to proof which I opened with Writer. The font specified in the document for Brao and Khmer wasn't installed but Writer never said this on opening the document. Instead of telling me this and letting me choose a replacement font, Writer substituted what it thought was the nearest font. This replacement font didn't render correctly for the Khmer and Brao languages. The problem was that even though I didn't have Khmer Busra Bunong installed, Writer placed the name of the font in the font dropdown menu and said it was using this font on the tool bar. This made me think Writer wasn't rendering the font properly. So I changed a few words to Khmer Mondulkiri font and it rendered correctly.  Then I tried to do a find and replace to the Khmer Mondulkiri font but Writer said it couldn't find the Khmer Busra Bunong font. 

Why did the program show a font and say it was using a font not installed? In doing this and not asking what font to substitute I couldn't tell what font Writer was actually using. Once I figured out the font wasn't installed I did install the Khmer Busra Bunong font it rendered correctly and all was well. 

Suggestion: Notify the user a font in the document isn't installed and let the user choose a replacement font. If the user doesn't choose a replacement font, don't add the name of the font not installed on the font menu/toolbar, but state what font was substituted.

I hope this is an easy fix and helps others. Thank you for the work you have done on this product.

Craig
Comment 1 V Stuart Foote 2024-06-17 23:46:12 UTC
Please note that the font not found is listed in italics. But could be more obvious -- bug 96872

The italics indicate a font substitution was made, unfortunately not what the replacement font is.  The original font taken from the paragraph style is retained, allowing use of the font substitution table rather than fall back. As well as some document portability considerations that would suffer if the was bulk font substitution without user selection.

See also bug 61134.

*** This bug has been marked as a duplicate of bug 96872 ***