Description: A customer provided a Word document (left-aligned-text.docx) whose string in a Text Box is A B C D E F G H I J K L M N O – including the final “O”. 1. In Microsoft Word: opening the document and exporting it to PDF (left-aligned-text-Word.pdf) preserves the full title “A B C D E F G H I J K L M N O.” 2. In LibreOffice Writer: opening the same .docx and exporting to PDF (left-aligned-text-LO.pdf) results in the title being truncated to A B C D E F G H I J K L M N (the final “O” is dropped). Steps to Reproduce: 1.Open left-aligned-text.docx in Microsoft Word → File → Export → Export as PDF → observe the string “A B C D E F G H I J K L M N O.” 2.Open the same left-aligned-text.docx in LibreOffice Writer → File → Export as PDF → observe the title “A B C D E F G H I J K L M N.” Actual Results: LibreOffice Writer (and its PDF export) omits the final “O” from the title. Expected Results: Both Word and LibreOffice should preserve the full title “A B C D E F G H I J K L M N O” in document metadata and in the exported PDF. Reproducible: Always User Profile Reset: No Additional Info: N/A
Created attachment 201609 [details] Word document to reproduce the issue.
Created attachment 201610 [details] PDF file exported by LibreOffice
Created attachment 201611 [details] PDF file exported by Microsoft Word.
No issue for me, but 'Lora' is also a non installed font in my pc, perhaps Word and Write are using a different substitution font. You can set up how to substitute in Menu>Tools>Options>LibreOffice>Fonts
Thank you for your prompt reply and suggestion regarding changing the font to resolve the reported issue. Unfortunately, this workaround is not feasible for our customer, as they have thousands of existing documents that use the Lora font. Modifying the font across all these documents would require substantial effort and is impractical. Additionally, our customer specifically prefers using the Lora font, and the documents in question display correctly when opened and exported as PDF using Microsoft Word. Given that Microsoft Word handles this scenario without any issues, we would appreciate further investigation into whether this behavior constitutes a bug in LibreOffice's handling of certain fonts or formatting. Could you please provide guidance on whether any other potential solutions or fixes are available without requiring a font change? We greatly appreciate your assistance and continued support.
If so, they should start by installing the font. In any way, they can establish a substitute font that fit properly their needs as commented: Menu>Tools>Options>LibreOffice>Fonts
With respect to your latest response involving installing the font or establishing a substitute font that fits properly our needs, we would like to share more details about this issue and specifics of our concern.. The provided document is using Lora font, which is an open font available via an open source license: https://fonts.google.com/specimen/Lora. We do have this font in place properly installed and used by LibreOffice prior to rendering the content of this document. Therefore the issue we are referring to is not related to font substitution. What we observe, is likely a font kerning issue. Please note, while the text characters are properly rendered, the spacing in between the characters is not. LibreOffice renders larger gaps in between the characters compared to MS Office, which results in missing the last character. We noted this issue is specifically happening with the Left and Right Alignment of text, but it is not happening with Justify Alignment, which makes us believe this is an issue in the LibreOffice rendering engine. Can you kindly investigate the issue and let us know how to work around this issue w/o modifying the document or if the LibreOffice code fix is scheduled to address this?
I'm only trying to help on confirming the bug. The text has a lot of direct format, with a different and negatives pair kerning for the spaces than letters, and not all spaces has the same kerning. Maybe not all the calculations are exactly the same. Also changing the Text attribute for Text box, to disable 'Word wrap text in shape', allow seeing the whole text. Reproducible Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 36a55369a6ac72ae985cf31405b7f52686665d84 CPU threads: 16; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Raster; VCL: win Locale: en-US (es_ES); UI: en-US Calc: CL threaded
Thank you for the suggestion. If you’re referring to Format → Text Box and Shape → Text Attributes… and then unchecking “Word wrap text in shape”, doing that by hand isn’t practical for us — we have thousands of documents. Is there any alternative method — perhaps via programmatic approach—that would let us disable “Word wrap text in shape” across multiple files at once?
I think, sure it is possible with a macro (I don't have the acknowledge to do it). But maybe there is possible to have same help in: https://ask.libreoffice.org/c/english/5/l/latest