Bug 68880 - FORMATTING: wrong fonts displayed for presentations created under Linux
Summary: FORMATTING: wrong fonts displayed for presentations created under Linux
Status: RESOLVED DUPLICATE of bug 64509
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
4.0.5.2 release
Hardware: Other All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Font-Substitution
  Show dependency treegraph
 
Reported: 2013-09-03 10:01 UTC by Brian Candler
Modified: 2022-04-21 10:05 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Linux-authored presentation with problems rendering in OSX (47.71 KB, application/vnd.oasis.opendocument.presentation)
2013-09-03 10:01 UTC, Brian Candler
Details
How slide 4 renders under LO 4.0.5.2 / OSX 10.7.5 (239.13 KB, image/png)
2013-09-03 10:02 UTC, Brian Candler
Details
Slide 4 rendering after installing font (4.0.3.3/OS X 10.9.4) (157.20 KB, image/png)
2014-07-20 18:18 UTC, Christopher Alexander Chavez
Details
Screenshot with 5.0.1.2 (175.13 KB, image/png)
2015-09-04 07:19 UTC, Brian Candler
Details
Document as opened with LO 5.1.5.2 (30.98 KB, image/png)
2016-09-20 10:45 UTC, Brian Candler
Details
Document after "Courier New" is selected by hand (31.72 KB, image/png)
2016-09-20 10:45 UTC, Brian Candler
Details
Render of slide 4 under LO 5.3.6.1 and macOS 10.12.6 (174.32 KB, image/png)
2017-10-01 17:47 UTC, Brian Candler
Details
Render of slide 4 under LO 5.4.5.1 and macOS 10.14.6 (182.00 KB, image/png)
2021-03-19 07:53 UTC, Brian Candler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Candler 2013-09-03 10:01:02 UTC
Created attachment 85106 [details]
Linux-authored presentation with problems rendering in OSX

.odp presentation created with Linux version of OpenOffice (sorry, don't know which exact version it was, but it's from 2010-2011).

When loaded in LibreOffice for OSX, fonts are misshown. Look in particular at slides 4, 9, 11, 17, 24, 42, 70.

The font in the original was "Courier 10 Pitch". Some of this renders in Olde English gothic-style script (which is amusing but not useful), and some in plain sans-serif but with larger line spacing, which means that the text no longer aligns with the overlaid graphics, and some slides spill outside of their frames.

Tested just now with LO 4.0.5.2 under OSX 10.7.5, but this problem also existed with the LO 3.x series.
Comment 1 Brian Candler 2013-09-03 10:02:21 UTC
Created attachment 85107 [details]
How slide 4 renders under LO 4.0.5.2 / OSX 10.7.5
Comment 2 Brian Candler 2013-09-03 11:17:02 UTC
BTW, "Courier New" appears to be the best replacement to the original font (such that the line spacing is as expected)
Comment 3 Christopher Alexander Chavez 2014-07-20 18:18:51 UTC
Created attachment 103151 [details]
Slide 4 rendering after installing font (4.0.3.3/OS X 10.9.4)

Hilarious symptom indeed. The bug persists to 4.3.0.3 (aka RC3) on OS X. I cannot confirm if and what happens on Windows (at the moment), but I wouldn't be surprised if it doesn't look right. After downloading and installing Courier 10 Pitch through Font Book, I get the expected appearance (see attachment for example).

Now, it should be possible to include Courier 10 Pitch with LibreOffice for Windows and OS X: the Fonts section of the license file would just need to updated with the copyright message from Bitstream.
Courier 10 Pitch, and possibly other fonts, are not exactly "readily available" to casual users, at least without having to purchase a license or come across the efforts of a community member (https://groups.google.com/d/topic/trelby/CGkpcMBXW9U/discussion); nor is manually installing fonts an everyday task. At the same time, distributing it may inadvertently pass the issue further down when someone uses Courier 10 Pitch under good faith but then hands their file off to someone without it. Yet it is seems to still be included with many Linux distributions, often alongside Liberation Mono (the substitute for Courier New). I would seek additional opinions…
Comment 4 Christopher Alexander Chavez 2014-07-20 18:24:31 UTC
(In reply to comment #0)
> .odp presentation created with Linux version of OpenOffice (sorry, don't
> know which exact version it was, but it's from 2010-2011).
PS, According to the metadata, it was saved with OpenOffice 3.1.1 (Build 9420) in May 2010.
Comment 5 QA Administrators 2015-09-04 02:47:42 UTC Comment hidden (obsolete)
Comment 6 Brian Candler 2015-09-04 07:19:27 UTC
Created attachment 118406 [details]
Screenshot with 5.0.1.2
Comment 7 Brian Candler 2015-09-04 07:30:31 UTC
The bug remains in a different form.

Now, instead of substituting some olde-English gothic font, it substitutes a sans-serif proportionally spaced font (something like Arial Black), and the vertical alignment is wrong - see how the text misaligns with the image on slide 4.

The font displayed in the drop-down is "Courier 10 Pitch" in italics, presumably signifying that the font is unavailable.

If I manually change the font to "Courier New" the vertical alignment is correct - but incidentally not with "Courier".

So I think better behaviour would be to:
* substitute Courier 10 Pitch -> Courier New [or at least some other monospaced font]
or:
* include the Courier 10 Pitch font with LibreOffice, as suggested by Christopher Chavez
Comment 8 QA Administrators 2016-09-20 10:28:36 UTC Comment hidden (obsolete)
Comment 9 Brian Candler 2016-09-20 10:44:32 UTC
The issue is still present with libreoffice 5.1.5.2 under OSX 10.11.6 and as described in comment #7

The monospace font from the sample document is being replaced with a proportionally-spaced sans-serif font with different vertical spacing. If it were replaced with Courier New it would be fine.

I will attach a screenshot of page 4 of the sample document (how it renders when opened, and how it renders after Courier New is explicitly selected)
Comment 10 Brian Candler 2016-09-20 10:45:23 UTC
Created attachment 127455 [details]
Document as opened with LO 5.1.5.2
Comment 11 Brian Candler 2016-09-20 10:45:57 UTC
Created attachment 127456 [details]
Document after "Courier New" is selected by hand
Comment 12 Xisco Faulí 2017-09-29 08:48:24 UTC Comment hidden (obsolete)
Comment 13 Brian Candler 2017-10-01 17:46:41 UTC
With current LibreOffice (5.3.6.1, macOS 10.12.6): behaviour is not quite so bad in that the gothic / olde-English font is not used, but it does not use a monospaced font.  As a result the rendering is still poor.

I will attach a render of slide 4.
Comment 14 Brian Candler 2017-10-01 17:47:44 UTC
Created attachment 136669 [details]
Render of slide 4 under LO 5.3.6.1 and macOS 10.12.6
Comment 15 QA Administrators 2019-03-18 03:46:02 UTC Comment hidden (obsolete)
Comment 16 Christopher Alexander Chavez 2019-03-18 23:27:59 UTC
This issue is still present, with behavior resembling the screenshot in comment #6.

Version: 6.2.1.2
Build ID: 7bcb35dc3024a62dea0caee87020152d1ee96e71
CPU threads: 4; OS: Mac OS X 10.14.3; UI render: default; VCL: osx; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded
Comment 17 Christopher Alexander Chavez 2019-03-19 03:20:44 UTC
I also tried this on Windows finally, and the same issue applies, with appearance similar to the screenshot in comment #6.

However, a similar issue is now apparent even on Linux (although I observed the font substituted was DejaVu Sans Mono, rather than the proportional sans-serif font on Windows or macOS). This is because LibreOffice 5.3 removed support for Type 1 fonts, which is the format Courier 10 Pitch is typically available as on Linux (such as the xfonts-scalable package on Debian/Ubuntu); see #104701. Using Courier 10 Pitch now requires having it in a compatible format, such as the TTF version I linked to in comment #3.

I think this issue might be rephrased as "improper substitute used for Courier 10 Pitch". I'm not sure LibreOffice is responsible for choosing font substitutes, though.
Comment 18 QA Administrators 2021-03-19 04:41:30 UTC Comment hidden (obsolete)
Comment 19 Brian Candler 2021-03-19 07:52:54 UTC
Bug still exists:

Version: 5.4.5.1
Build ID: 79c9829dd5d8054ec39a82dc51cd9eff340dbee8
CPU threads: 4; OS: Mac OS X 10.14.6; UI render: default; 
Locale: en-GB (en_GB.UTF-8); Calc: group

It is still as described by Christopher Chavez: "I think this issue might be rephrased as 'improper substitute used for Courier 10 Pitch'"
Comment 20 Brian Candler 2021-03-19 07:53:49 UTC
Created attachment 170565 [details]
Render of slide 4 under LO 5.4.5.1 and macOS 10.14.6
Comment 21 Timur 2022-04-21 10:05:59 UTC
Courier 10 Pitch is not a frequent font that you need to install if you will use it, and moreover it seems free. 
You may define font replacement in Linux, but alternatively and better, you may define your own replacement like explained in bug 64509 (unfortunately there+s bug 43185).

So this may be WontFix or set as a duplicate, which I do.

*** This bug has been marked as a duplicate of bug 64509 ***