# Font not preserved

**URL:** <https://forum.collaboraonline.com/t/font-not-preserved/1795>\
**Category:** User Support\
**Created:** [May 5, 2023, 10:34am UTC](https://forum.collaboraonline.com/t/font-not-preserved/1795 "2023-05-05T10:34:12Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![nadirlouati](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/nadirlouati/32/731_2.png) [@nadirlouati](https://forum.collaboraonline.com/u/nadirlouati)\
**Post date:** [May 5, 2023, 10:34am UTC](https://forum.collaboraonline.com/t/font-not-preserved/1795/1 "2023-05-05T10:34:12Z")

</div>

Hello, i’m using collabora online 22.05.12.4

when i add text on the first list item before “Random text”, the font is not preserved.

Random text use calibri font  
but the inserted text is ms sans serif

i attached the sample .docx file. What can i do ?

Thanks.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/collaboraonline/original/1X/1eaaea7dc3ce66c784c6636f2fa6fc9a0f24ff73.png)

[test.docx](https://forum.collaboraonline.com/uploads/short-url/xbtHMnq786gvx360FFa5gW3xeSf.docx) (14.5 KB)

---

<div class="post-metadata">

**Author:** ![nadirlouati](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/nadirlouati/32/731_2.png) [@nadirlouati](https://forum.collaboraonline.com/u/nadirlouati)\
**Post date:** [May 10, 2023, 3:32pm UTC](https://forum.collaboraonline.com/t/font-not-preserved/1795/2 "2023-05-10T15:32:07Z")

</div>

Hello,

still same problem on various files.

any help ?

---

<div class="post-metadata">

**Author:** ![Tex](https://avatars.discourse-cdn.com/v4/letter/t/eb8c5e/32.png) [@Tex](https://forum.collaboraonline.com/u/Tex)\
**Post date:** [May 11, 2023, 7:09am UTC](https://forum.collaboraonline.com/t/font-not-preserved/1795/3 "2023-05-11T07:09:19Z")

</div>

Hey @nadirlouati,

Thanks for reporting this issue.

> Hello, i’m using collabora online 22.05.12.4

22.05.14 was just released last week + there were a few bugfixes.

Think you could retest using that version?

If it’s still an issue, then please give the full info in:

- **Help \> About** page

> when i add text on the first list item before “Random text”, the font is not preserved.

Yes, I was able to reproduce this on an older version of COOL too:

- Clicking at beginning of 1st bullet.
- Type something.

Actual:

- Font = “MS Sans Serif” + 10pt is used.

Expected:

- Font = “Calibri” + 13pt.

In LibreOffice 7.5.3, the DOCX works as expected though.

* * *

**Technical Side Note:** Looks like COOL, if you place the cursor:

- Right after a bullet
- OR very beginning of the “Résultat” line

typing new text starts using the:

- “Default Paragraph” Style

which is set to:

- “MS Sans Serif” + 10pt font

not matching the direct formatting next to the cursor.

---

<div class="post-metadata">

**Author:** ![nadirlouati](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/nadirlouati/32/731_2.png) [@nadirlouati](https://forum.collaboraonline.com/u/nadirlouati)\
**Post date:** [May 11, 2023, 1:46pm UTC](https://forum.collaboraonline.com/t/font-not-preserved/1795/4 "2023-05-11T13:46:55Z")

</div>

Hello again and thanks for the assistance.

same problem with newer docker image

COOLWSD version:  
22.05.14.3git hash: [c360011]

LOKit version:  
Collabora Office 22.05.14.3git hash: [8e4f947]  
Served by: Ubuntu 18.04.6 LTS [91357248]

---

<div class="post-metadata">

**Author:** ![nadirlouati](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/nadirlouati/32/731_2.png) [@nadirlouati](https://forum.collaboraonline.com/u/nadirlouati)\
**Post date:** [May 17, 2023, 8:04am UTC](https://forum.collaboraonline.com/t/font-not-preserved/1795/5 "2023-05-17T08:04:49Z")

</div>

Good morning,

it’s a bug related to libreoffice docker version ?

or there’s something i can do by modifying the raw docx file with java library Apacje POI-XWPF ?

Thanks again

---

<div class="post-metadata">

**Author:** ![Tex](https://avatars.discourse-cdn.com/v4/letter/t/eb8c5e/32.png) [@Tex](https://forum.collaboraonline.com/u/Tex)\
**Post date:** [May 18, 2023, 10:00am UTC](https://forum.collaboraonline.com/t/font-not-preserved/1795/6 "2023-05-18T10:00:07Z")

</div>

> it’s a bug related to libreoffice docker version ?

Hmm, maybe, maybe.

Collabora 23.05 is in the works (coming out very soon), let me retest + see if the issue is already solved there!

It looks like the CollaboraOffice 23.05 works on your sample document fine, so hopefully the online version works too!

---

<div class="post-metadata">

**Author:** ![nadirlouati](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/nadirlouati/32/731_2.png) [@nadirlouati](https://forum.collaboraonline.com/u/nadirlouati)\
**Post date:** [May 18, 2023, 10:19am UTC](https://forum.collaboraonline.com/t/font-not-preserved/1795/7 "2023-05-18T10:19:25Z")

</div>

Good morning,

thank you for your time

i’m waiting your feedback ⏰

---

<div class="post-metadata">

**Author:** ![Tex](https://avatars.discourse-cdn.com/v4/letter/t/eb8c5e/32.png) [@Tex](https://forum.collaboraonline.com/u/Tex)\
**Post date:** [May 18, 2023, 12:00pm UTC](https://forum.collaboraonline.com/t/font-not-preserved/1795/8 "2023-05-18T12:00:28Z")

</div>

Okay, looks like it’s still an issue in today’s latest master:

* * *

COOLWSD version:  
23.05.0.1 git hash: (012b00d6)  
LOKit version:  
Collabora Office 23.05.0.1 git hash: (bc5c5de)  
Served by: Linux Mint 21.1 (33ee7769)

* * *

@nadirlouati, do you have a Github account? Think you could:

- Submit this bug to the [Collabora Online Github](https://github.com/CollaboraOnline/online/issues)?

with your:

- sample document
- List of steps
- + Link to this thread?

(If not, I could submit an Issue on your behalf too.)

Let me know when you do, then I could submit all my debug/testing info to the bug report too. 🙂

---

<div class="post-metadata">

**Author:** ![nadirlouati](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/nadirlouati/32/731_2.png) [@nadirlouati](https://forum.collaboraonline.com/u/nadirlouati)\
**Post date:** [May 18, 2023, 1:15pm UTC](https://forum.collaboraonline.com/t/font-not-preserved/1795/9 "2023-05-18T13:15:31Z")

</div>

issue submitted

> <https://github.com/CollaboraOnline/online/issues/6382>
>
> \*\*Describe the bug\*\*
> The font is not preserved if i type before the first carac…ter in an bulled list
> 
> \*\*To Reproduce\*\*
> when i add text on the first list item before “Random text”, the font is not preserved.
> Random text use calibri font
> but the inserted text is ms sans serif
> i attached the sample .docx file. 
> 
> \*\*Expected behavior\*\*
> font preserved
> 
> \*\*Actual behavior\*\*
> font not preserved
> 
> \*\*Screenshots\*\*
> \[test.docx\](https://github.com/CollaboraOnline/online/files/11508035/test.docx)
> !\[image\](https://github.com/CollaboraOnline/online/assets/61733635/f5a2d387-531d-46a3-bf6e-b21abcec480d)
> 
> \*\*Desktop (please complete the following information)\*\*
> - collabora online 22.05.12.4 docker
> - same problem with 
> COOLWSD version:
> 22.05.14.3git hash: \[c360011\]
>       
> LOKit version:
> Collabora Office 22.05.14.3git hash: \[8e4f947\]
> Served by: Ubuntu 18.04.6 LTS \[91357248\]
> 
> 
> link to original ticket
> https://forum.collaboraonline.com/t/font-not-preserved/1795/7

---

<div class="post-metadata">

**Author:** ![Tex](https://avatars.discourse-cdn.com/v4/letter/t/eb8c5e/32.png) [@Tex](https://forum.collaboraonline.com/u/Tex)\
**Post date:** [May 18, 2023, 2:03pm UTC](https://forum.collaboraonline.com/t/font-not-preserved/1795/10 "2023-05-18T14:03:37Z")

</div>

Fantastic. Thanks!

I confirmed + added all my info there too.

Hopefully the root cause will get found/squished soon. 🙂

---

<div class="post-metadata">

**Author:** ![nadirlouati](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/nadirlouati/32/731_2.png) [@nadirlouati](https://forum.collaboraonline.com/u/nadirlouati)\
**Post date:** [June 13, 2023, 7:19am UTC](https://forum.collaboraonline.com/t/font-not-preserved/1795/11 "2023-06-13T07:19:08Z")

</div>

Good morning,

it seems like no one can handle this wired bug 😃

---

<div class="post-metadata">

**Author:** ![Tex](https://avatars.discourse-cdn.com/v4/letter/t/eb8c5e/32.png) [@Tex](https://forum.collaboraonline.com/u/Tex)\
**Post date:** [June 15, 2023, 2:04am UTC](https://forum.collaboraonline.com/t/font-not-preserved/1795/12 "2023-06-15T02:04:59Z")

</div>

Well, we have it reported in the Github, so now we just wait patiently for a solution (some time in the future). 🙂

---

<div class="post-metadata">

**Author:** ![nadirlouati](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/nadirlouati/32/731_2.png) [@nadirlouati](https://forum.collaboraonline.com/u/nadirlouati)\
**Post date:** [March 25, 2024, 7:12am UTC](https://forum.collaboraonline.com/t/font-not-preserved/1795/13 "2024-03-25T07:12:23Z")

</div>

Helo, it’s been a while !

any updates ?

---

<div class="post-metadata">

**Author:** ![Tex](https://avatars.discourse-cdn.com/v4/letter/t/eb8c5e/32.png) [@Tex](https://forum.collaboraonline.com/u/Tex)\
**Post date:** [March 27, 2024, 11:44pm UTC](https://forum.collaboraonline.com/t/font-not-preserved/1795/14 "2024-03-27T23:44:30Z")

</div>

Hey @nadirlouati, thanks for checking in. 🙂

I retested+answered in your Github bug. No change in this specific issue, but you’ll be the first to know.

* * *

I just pinged a few of the others to look into it. Hopefully someone will. 🙂

---

<div class="post-metadata">

**Author:** ![Ezinne](https://avatars.discourse-cdn.com/v4/letter/e/d07c76/32.png) [@Ezinne](https://forum.collaboraonline.com/u/Ezinne)\
**Post date:** [October 16, 2024, 6:46am UTC](https://forum.collaboraonline.com/t/font-not-preserved/1795/15 "2024-10-16T06:46:54Z")

</div>

The fix has been implemented.

The font is preserved in:  
COOLWSD version: 24.04.9.0(git hash: [a330f9e7](https://github.com/CollaboraOnline/online/commits/a330f9e7) (E))  
LOKit version: Collabora Office 24.04.9.0(git hash: [3eec192](https://git.libreoffice.org/core/+log/3eec192))

 ![Screenshot from 2024-10-16 07-45-09](https://europe1.discourse-cdn.com/flex013/uploads/collaboraonline/original/2X/d/dcb00a675fff4817917f754b83960ed5b668573a.png)

---

<div class="post-metadata">

**Author:** ![darshan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/darshan/32/2230_2.png) [@darshan](https://forum.collaboraonline.com/u/darshan)\
**Post date:** [October 16, 2024, 7:38am UTC](https://forum.collaboraonline.com/t/font-not-preserved/1795/16 "2024-10-16T07:38:00Z")

</div>


