Bug 150377 - ODF without font information uses hardcoded defaults, should use settings from Options->Writer->Basic Fonts
Summary: ODF without font information uses hardcoded defaults, should use settings fro...
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
Hardware: All All
: lowest normal
Assignee: Not Assigned
Depends on:
Reported: 2022-08-12 07:20 UTC by Mike Kaganski
Modified: 2022-12-18 06:52 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:

An ODT without style information (642 bytes, application/vnd.oasis.opendocument.text)
2022-08-12 07:20 UTC, Mike Kaganski

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2022-08-12 07:20:12 UTC
Created attachment 181733 [details]
An ODT without style information

Attachment (actually, a completely stripped out ODT without any style information, from commit 3a7a06067e545670ef64367ef602469f507a3df7) does not include font information. When opened in Writer, it uses the hardcoded default Liberation Serif for default style, not the font defined in Options->Writer->Basic Fonts.

1. Open the attachment, and check its language (in status bar) and fonts. Close it without save.
2. Change application's default language and fonts (language: Options->Language Settings->Languages, Default Languages for Documents->Western; fonts: Options->Writer->Basic Fonts).
3. Open the attachment again, see that the language followed the changed defaults, but fonts didn't.

Arguably should be WONTFIX - will not have much of impact after implementing bug 139962.
Comment 1 Ezinne 2022-08-19 07:22:24 UTC
Reproducible in:

Version: / LibreOffice Community
Build ID: a9d225df2f8772e21435523ca20df1ece37390e4
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: pt-BR (en_NG); UI: en-US
Calc: threaded
Comment 2 Ezinne 2022-08-19 07:22:25 UTC Comment hidden (obsolete)
Comment 3 Mike Kaganski 2022-12-18 06:52:26 UTC
An advantage of using hardcoded defaults in the absence of an information in the document is having "partial" documents more predictable, less dependent on custom settings (in case when the hardcoded defaults never change across program versions). Another reason to WONTFIX (possibly the most important), or even NOTABUG (works as intended), which I will assume here.