Hi,
recently we added some support to preserve theme-related font
attributes, like font name and color, when importing/exporting docx
documents. But now I'm wondering how wondering how these attributes
interact with copy&pasting.
This is the current behaviour of LibreOffice:
* Copy & paste inside the same document works properly, all the
supported theme attributes of the text are preserved.
* When you paste into a different document, the theme attributes that
belong to the characters are preserved. It means that your text is using
the "main theme colour" and the "major theme font", those attributes are
preserved. But:
* The theme file itself is not copied to the other document, so the
actual font and colour shown will fall back to the ones in the default
theme when you open that document in Word.
* If your text didn't have theme attributes and it was using the
default row properties contained in the styles file, those properties
are not preserved.
Copying the information in the theme and the styles files when pasting
things is probably not a viable idea, but maybe we should transform the
theme format into direct format when pasting the text to a new document.
For example, if the "major theme font" is Arial, the pasted font would
become Arial too.
What do you think? And if you agree, where I should start reading code? ;)
--
Jacobo Aragunde
Software Engineer at Igalia
Context
- Copying and pasting docx theme font attributes · Jacobo Aragunde Pérez
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.