Bug 124244 - For some fonts switching to Bold makes text invisible
Summary: For some fonts switching to Bold makes text invisible
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice Online
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-21 16:33 UTC by Vlastimil Pecinka
Modified: 2019-04-19 10:17 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
excel file with Calibri font (26.51 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2019-04-11 15:12 UTC, Vlastimil Pecinka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vlastimil Pecinka 2019-03-21 16:33:19 UTC
I am using Collabora CODE build in Nextoffice. Since CODE version 4.0.1 (also in 4.0.2) I experience disappearing of the text, when a specific bold font is used (e.g. Calibri, Carlito), but for others it works.

It does not matter if the font is installed on the server or not. When I have text in a cell with this font, switching bold on/off makes it disappear/appear again. Switching text font e.g. to Arial works smoothly.

The last working version is CODE 4.0.0 from the commit LOOLWSD: 4.0.0 (git hash: 3c3bc88) and LOkit: Collabora Office 6.0-18 (git hash: e74e598)

The same behavior for Writer, not Calc only.
Comment 1 Vlastimil Pecinka 2019-03-21 16:33:58 UTC
*nextcloud (not nextoffice :-))
Comment 2 Aron Budea 2019-04-10 02:11:37 UTC
Please upload a sample file that has such invisible bold text. I tested now with font Carlito, and could see the text fine even when bold.
Comment 3 Vlastimil Pecinka 2019-04-11 15:12:24 UTC
Created attachment 150698 [details]
excel file with Calibri font
Comment 4 Vlastimil Pecinka 2019-04-11 15:13:31 UTC
I also provide Dockerfile I use to build image (for test of adding MS fonts)

FROM collabora/code:4.0.3.1

MAINTAINER Vlastimil Pecinka <xxxxxxx>

EXPOSE 9980

RUN echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections
RUN   apt-get update \
  &&  apt-get install -f -y --no-install-recommends --no-install-suggests \
		ttf-mscorefonts-installer \
		fonts-crosextra-carlito \
		fonts-crosextra-caladea \
		curl \
  &&  apt-get clean \
  &&  rm -rf /var/lib/apt/lists/*

# increase ulimits
RUN echo "lool soft nofile 16384" >> /etc/security/limits.conf

# MS fonts
#ADD fonts/* /usr/share/fonts/truetype/msttcorefonts/

#RUN fc-cache -fv
RUN fc-cache

CMD bash /start-libreoffice.sh
Comment 5 Aron Budea 2019-04-15 05:17:49 UTC
Thanks for the sample! I checked with the file in my local build, which does not have Calibri installed at all, and I could see the text even after making it bold or italic.
Do you have all the font variants installed? (regular, bold, italic, bold italic)
Comment 6 Vlastimil Pecinka 2019-04-19 10:16:10 UTC
(In reply to Aron Budea from comment #5)
> Thanks for the sample! I checked with the file in my local build, which does
> not have Calibri installed at all, and I could see the text even after
> making it bold or italic.
> Do you have all the font variants installed? (regular, bold, italic, bold
> italic)

Yes, I tried to install MS fonts as described in the Dockerfile example. I have also tried not to install any fonts. And voila - the issue disappeared. 

Note to mention that I build my docker image base on Collabora/code from hub.docker.io and added ttf-mscorefonts-installer, fonts-crosextra-carlito, fonts-crosextra-caladea that worked for 3.4.x versions... 

So I think this can be closed, thanks!