Trying to produce the requested documents and screenshots I noticed
something strange:

LibreOffice provides a varying set of font weights for Nimbus Sans L in
its chooser dialog, depending on whether I create a new document or open
a previously created one (which did work fine before the upgrade).

I noticed the following: According to fc-list, there were three packages
installed which provided the Nimbus Fonts with partially conflicting
weights:

# fc-list | egrep 'Nimbus Sans L'      
/usr/share/fonts/type1/texlive-fonts-recommended/uhvb8a.pfb: Nimbus Sans 
L:style=Bold
/usr/share/fonts/type1/texlive-fonts-recommended/uhvro8a.pfb: Nimbus Sans 
L:style=Regular Italic
/usr/share/fonts/X11/Type1/n019003l.pfb: Nimbus Sans L:style=Regular
/usr/share/fonts/X11/Type1/n019004l.pfb: Nimbus Sans L:style=Bold
/usr/share/fonts/X11/Type1/n019023l.pfb: Nimbus Sans L:style=Regular Italic
/usr/share/fonts/X11/Type1/n019024l.pfb: Nimbus Sans L:style=Bold Italic
/usr/share/fonts/type1/texlive-fonts-recommended/uhvr8ac.pfb: Nimbus Sans 
L:style=Regular Condensed
/usr/share/fonts/type1/texlive-fonts-recommended/uhvro8ac.pfb: Nimbus Sans 
L:style=Regular Condensed Italic
/usr/share/fonts/type1/texlive-fonts-recommended/uhvbo8a.pfb: Nimbus Sans 
L:style=Bold Italic
/usr/share/fonts/type1/texlive-fonts-recommended/uhvr8a.pfb: Nimbus Sans 
L:style=Regular
/usr/share/fonts/type1/gsfonts/n019023l.pfb: Nimbus Sans L:style=Regular Italic
/usr/share/fonts/type1/texlive-fonts-recommended/uhvbo8ac.pfb: Nimbus Sans 
L:style=Bold Condensed Italic
/usr/share/fonts/type1/gsfonts/n019024l.pfb: Nimbus Sans L:style=Bold Italic
/usr/share/fonts/type1/texlive-fonts-recommended/uhvb8ac.pfb: Nimbus Sans 
L:style=Bold Condensed
/usr/share/fonts/type1/gsfonts/n019004l.pfb: Nimbus Sans L:style=Bold
/usr/share/fonts/type1/gsfonts/n019003l.pfb: Nimbus Sans L:style=Regular

# dpkg -S /usr/share/fonts/X11/Type1/n019003l.pfb
gsfonts-x11: /usr/share/fonts/X11/Type1/n019003l.pfb

# dpkg -S /usr/share/fonts/type1/gsfonts/n019024l.pfb
gsfonts: /usr/share/fonts/type1/gsfonts/n019024l.pfb

# dpkg -S /usr/share/fonts/type1/texlive-fonts-recommended/uhvr8a.pfb
texlive-fonts-recommended: 
/usr/share/fonts/type1/texlive-fonts-recommended/uhvr8a.pfb

With this configuration, LibreOffice shows a pretty confusing, or maybe
confused, behaviour.

While the KDE System Settings font selection dialog shows all install
weights for Nimbus Sans L, LibreOffice shows two different sets
depending on whether I create a new document or load the existing one:
(Also see screenshots.)

1; A new document: The default bold font face is missing, only Bold Condensed 
(both in straigth and italic styles) is
    offered. However, for normal font weight, the default regular type face is 
available.

2; The existing document: In this case LO only offers condensed type faces in 
straigt style, while only the regular width
    typefaces are offered for italic style.
    That's what messed up my document, LO seems to select the metrics of a 
condensed width font but uses the glyphs of a
    regular width font, causing the characters to touch each other. For 
printing, even the metrics of the regular width font
    seem to be applied, causing the text to be much wider in print than on the 
screen, overflowing table cells etc.

3: Removing gsfonts-x11 did not change anything.

    However removing texlive-fonts-recommended fixes the problem, now only the 
regular width type faces provided by 
    gsfonts are available and can be selected in both LibreOffice - 
independently of if I create a new document or open the
    existing one - and the KDE Control Center.

    Removing gsfonts was not possible without breaking lots of packages
so I did not try this.

4: I just tried to reinstall the texlive fonts to make a screenshot with LO and 
wrong font rendering, and now LO provides
    Nimbus Sans L only in regular weight and straigt style while bold weights 
and italic style are only available in condensed type
    faces... Apparently, the font variants displayed seem to depend on the 
order in which the fonts are read by LO...

So I now cannot reproduce the actual display problem I had, but the
bottom line is that

a) LO sometimes only displays a random selection of installed fonts,
b) this selection may differ between different documents on the same computer, 
and
c) this selection may change after (re)installations of existing fonts which do 
not change the fonts actually available. (eg. I'd
     assume this could even happen during security updates if the font list / 
cache is regenerated.)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1261936

Title:
  Nimbus Sans L font metrics messed up in LibreOffice

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1261936/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to