The ODF writer would ignore the default font set on the document and just output default values according to spec, such as "Sans" for the font family. With this patch, any settings set explicitly on the default font will be taken into account, granted that they are not overridden by any properties in the QTextCharFormat. [ChangeLog][Text] The ODF backend to QTextDocumentWriter will now respect the default font set on the QTextDocument. Fixes: QTBUG-124570 Change-Id: Ia937420f7f721bbf3264661160cb0a593907358c Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io> (cherry picked from commit 77a9a208227ecf750d620b3048053fd4fc4299a4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| CMakeLists.txt | ||
| tst_qtextodfwriter.cpp | ||