<div dir="ltr">Thank you. We gave that a try and it solved font issue as in previously, all the converted text had the same font.<div>However, it still doesn't work for these languages: Chinese, Japanese, Korean and Punjabi out of the 8 languages that we tested.</div><div>This is what we had in our test.docx. The converted pdf doesn't contain the font of Chinese, Japanese, Korean and Punjabi. It seems fine for the other 4 languages.<br><br>```<br>Chinese: 这是一个测试<br>Japanese: これはテストです<br>Korean : 이것은 시험이다<br>Arabic: هذا اختبار<br>Russian: это проверка<br>Hebrew: זה מבחן<br>Greek: αυτό είναι ένα τεστ<br>Punjabi: ਇਹ ਇੱਕ ਟੈਸਟ ਹੈ<br>``` <br><br></div><div>Is there anything we can modify in `share/registry/main.xcd` file like what this user wrote in this thread: <a href="https://ask.libreoffice.org/t/how-to-set-default-fontsize-without-gui/22545">https://ask.libreoffice.org/t/how-to-set-default-fontsize-without-gui/22545</a> ?<br><br><br><br><br><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 26, 2021 at 10:35 PM Ilmari Lauhakangas <<a href="mailto:ilmari.lauhakangas@libreoffice.org" target="_blank">ilmari.lauhakangas@libreoffice.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 27.11.2021 3.21, Jun 711 wrote:<br>
> Hi,<br>
> <br>
> I followed the steps written in this repo to try to compile a compact <br>
> version of libreoffice that can convert non-English documents to PDFs. <br>
> <a href="https://github.com/vladgolubev/serverless-libreoffice/blob/master/Dockerfile" rel="noreferrer" target="_blank">https://github.com/vladgolubev/serverless-libreoffice/blob/master/Dockerfile</a> <br>
> <<a href="https://github.com/vladgolubev/serverless-libreoffice/blob/master/Dockerfile" rel="noreferrer" target="_blank">https://github.com/vladgolubev/serverless-libreoffice/blob/master/Dockerfile</a>><br>
> <br>
> The compiled Libreoffice provided by Vlad Holubiev through the repo <br>
> works for English documents but not for non-English documents. I posted <br>
> a question on the repo but haven't got any response. <br>
> <a href="https://github.com/vladgolubev/serverless-libreoffice/issues/39" rel="noreferrer" target="_blank">https://github.com/vladgolubev/serverless-libreoffice/issues/39</a> <br>
> <<a href="https://github.com/vladgolubev/serverless-libreoffice/issues/39" rel="noreferrer" target="_blank">https://github.com/vladgolubev/serverless-libreoffice/issues/39</a>><br>
> <br>
> I am not sure what flags to change. I found autogen.sh flags that he <br>
> posted but none of them seems to be for supporting non-English <br>
> languages. <br>
> <a href="https://github.com/vladgolubev/serverless-libreoffice/blob/master/autogen-help-output-6.2.1.2.txt" rel="noreferrer" target="_blank">https://github.com/vladgolubev/serverless-libreoffice/blob/master/autogen-help-output-6.2.1.2.txt</a> <br>
> <<a href="https://github.com/vladgolubev/serverless-libreoffice/blob/master/autogen-help-output-6.2.1.2.txt" rel="noreferrer" target="_blank">https://github.com/vladgolubev/serverless-libreoffice/blob/master/autogen-help-output-6.2.1.2.txt</a>><br>
> <br>
> I have also tried to change the default font to Noto Sans following the <br>
> step mentioned in the libreoffice thread as it seems to be able to <br>
> support all languages but that didn't help.<br>
> <a href="https://ask.libreoffice.org/t/how-to-set-default-fontsize-without-gui/22545" rel="noreferrer" target="_blank">https://ask.libreoffice.org/t/how-to-set-default-fontsize-without-gui/22545</a> <br>
> <<a href="https://ask.libreoffice.org/t/how-to-set-default-fontsize-without-gui/22545" rel="noreferrer" target="_blank">https://ask.libreoffice.org/t/how-to-set-default-fontsize-without-gui/22545</a>><br>
> <br>
> I wonder if anyone can give me a pointer on what I can try next?<br>
<br>
Looks like this is the culprit: <br>
<a href="https://github.com/vladgolubev/serverless-libreoffice/blob/7927017e96531b042b70f0de24be40fd88b44b63/Dockerfile#L110" rel="noreferrer" target="_blank">https://github.com/vladgolubev/serverless-libreoffice/blob/7927017e96531b042b70f0de24be40fd88b44b63/Dockerfile#L110</a><br>
<br>
--without-fonts         LibreOffice includes some third-party fonts to <br>
provide a reliable basis for help content, templates, samples, etc. When <br>
these fonts are already known to be available on the system then you <br>
should use this option.<br>
<br>
Obviously done to save disk space.<br>
<br>
So drop that option from the Dockerfile.<br>
<br>
Ilmari<br>
</blockquote></div>