Created attachment 202505 [details] sample file When an EMF is embedded in a DOCX and has arabic text in it, it will show up as weird characters.
Created attachment 202506 [details] how it renders in ms word
Reproducible Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 7f4868348c14b305fcd75744e1e3544d0d3a5d61 CPU threads: 16; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Raster; VCL: win Locale: es-ES (es_ES); UI: en-US Calc: CL threaded
Hi, It seems that whole page is EMF file. Could you please attach smaller image? The best would be with only Arabic letters.
Created attachment 202530 [details] Extracted EMF image with Arabic text
Created attachment 202531 [details] Minimal EMF image with only Arabic text There are two main records used in EMF image: * EMR_EXTCREATEFONTINDIRECTW, where Font Facename is "Traditional Arabic". I think is it unable to find such font, and that's why it is not displaying correctly. * EMR_EXTTEXTOUTW it contain the content of text to display. As font is not choosing correctly in EMR_EXTCREATEFONTINDIRECTW, it is displayed wrongly. More information: https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-emf/7e266b6d-32e5-4201-b687-8ec40c24cd73 and https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-emf/a59a79ac-328e-492d-a34d-e02727af6edf
Traditonal Arabic family is described at: https://learn.microsoft.com/en-us/typography/font-list/traditional-arabic Please make sure you have installed such fonts (Trado.ttf and Tradbdo.ttf).
I have traditional arabic installed on both windows and linux prior to filing the bug, as i opened a document with the EMF surprisingly in it, which was full of arabic text styled in traditional arabic and the text appeared fine.
Created attachment 202533 [details] screenshot from LO on linux Screenshot from the original document open with the EMF on the left page and the page on the right has text in traditional arabic where the cursor is set.