Welcome, Guest. Please login or register.
April 21, 2014, 12:42:09 PM
Home Help Search Calendar Login Register
Show unread posts since last visit.
News: Let Pardus-Anka become #1: Pardus-Anka Bug ReportPardus-Anka World Google+ | The Pardus wiki  | Visit Pardus-Anka official website  | Register as forum member?  Email the moderator!

+  Pardus Worldforum
|-+  Assistance
| |-+  Bugs
| | |-+  Nimbus Roman font and openoffice
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Nimbus Roman font and openoffice  (Read 4111 times)
6arts
Newbie
*
Posts: 3


View Profile
« on: October 10, 2009, 01:29:57 AM »

I try to open an open office document created with Mandriva or openSuse.
This document use the Nimbus Roman No 9 L font.

With Pardus, the font seems really weird : the bold is very huge !!!

This bug is present on the 2009 release. Does any one know a workaround ?!?

I post the bug in the bugzilla : http://bugs.pardus.org.tr/process_bug.cgi

It seems to be an old bug...
Logged
bubbel
Guest
« Reply #1 on: October 10, 2009, 11:17:50 AM »


I post the bug in the bugzilla : http://bugs.pardus.org.tr/process_bug.cgi


Hello 6arts,

the URL to the Bug dos not exist. Can you give please the right one. Wink

Greetings
bubbel
Logged
Michiel
Administrator
Pardus Guru
*****
Posts: 799



View Profile
« Reply #2 on: October 10, 2009, 11:27:23 AM »

http://bugs.pardus.org.tr/show_bug.cgi?id=11311

Description From  c_deolivei@yahoo.fr   2009-10-10 02:40:46   (-) [reply]

I try to open an open office document created with Mandriva or openSuse.
This document use the Nimbus Roman No 9 L font.

With Pardus, the font seems really weird : the bold is very huge !!!

This bug is present on the 2009 release. Does any one know a workaround ?!?

It seems to be an old bug : http://bugs.pardus.org.tr/show_bug.cgi?id=5534

It's quite annoying : with this bug I can work with this distro...

Logged

Former Pardus user, now on OpenSUSE 12.2 (KDE)
Michiel
Administrator
Pardus Guru
*****
Posts: 799



View Profile
« Reply #3 on: October 10, 2009, 11:32:21 AM »

My guess would be that it is quite essential to find out in which of the numerous font related PISI packages the Nimbus Roman font is included. That might be coded wrong.

The second theory would be that it is something within the OpenOffice packages, a bit less likely, but perhaps you could test this by using Nimbus Roman in an other wordprocessor application (say KOffice or Abiword) and see whether the bug persists.
Logged

Former Pardus user, now on OpenSUSE 12.2 (KDE)
Michiel
Administrator
Pardus Guru
*****
Posts: 799



View Profile
« Reply #4 on: October 10, 2009, 11:38:41 AM »

People have already been struggling with Nimbus Roman 9 back in 2004
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/9823

and distilling from this one would suspect the problem to be located in the
gnu-gs-fonts-std Ghostscript standard fonts pisi package, a package which has not seen any new version since....January 2004.....(version 8.11)

In other distro's people have made patches or other similar packages (gsfonts), on the ghostscript-fonts sourceforge page itself nothing seems to happen anymore.

More recently also in other distro's people encounter difficulteis with Nimbus:
http://bugs.archlinux.org/task/10593?cat
  • =&percent[0]=&pri[0]=&reported[0]=40&sev[0]=&status[0]=3&string=

=================================================
Comment by Steven S (mintcoffee) - Tuesday, 22 July 2008, 22:21 GMT-4
I encountered this problem with fontconfig-ubuntu and poppler-qt4 using okular. Executing "fc-match Times" maps to the following:

n021004l.pfb: "Nimbus Roman No9 L" "Medium"

I'm no expert on how fontconfig works, but I believe the correct mapping should be to "Nimbus Roman No9 L" "Regular".
Comment by Steven S (mintcoffee) - Tuesday, 30 September 2008, 17:15 GMT-4
I've managed to fix this issue with the attached options in my .fonts.conf. Basically, it introduces the 'Regular" style as the default, then maps the bold styles to the Medium weight.

% fc-match "Nimbus Roman No9 L"
n021003l.pfb: "Nimbus Roman No9 L" "Regular"

% fc-match "Nimbus Roman No9 L:Bold"
n021004l.pfb: "Nimbus Roman No9 L" "Medium"

There seems to be something strange with the gsfonts or fontconfig detecting the Medium weight as the default..

Comment by C├ęsar DE OLIVEIRA (6arts) - Friday, 20 March 2009, 10:57 GMT-4
Curently, i'm using KDE4.2. With kwords or open Office, I have a quite similar issue.

The bold font for the "Nimbus Roman No9 L" font is missing.
« Last Edit: October 10, 2009, 19:42:03 PM by Michiel » Logged

Former Pardus user, now on OpenSUSE 12.2 (KDE)
Michiel
Administrator
Pardus Guru
*****
Posts: 799



View Profile
« Reply #5 on: October 10, 2009, 14:18:09 PM »

The clue to this Nimbus Roman no 9 L font type specific problem might have to do with something mentioned above.

When you press Alt+F2 in KDE and you enter the command

Code:
konqueror fonts:/System/

Or when you enter in the Konsole:
Code:
fc-list

all available/installed fonts of the system are presented.

Now what is remarkable is the fact that MOST font types come with a regular, italic, bold and bold italic set whereas specifically Nimbus Roman No9 L comes with  regular, regular italic, medium and medium italic.

So, as noted in the post above I guess one should "tell" the system somehow that it should use "medium" type of this specific font when bold is requested.

How to do so I do not know yet.

One might try the most simple option at first and try to attribute bold instead of medium to the file n021004l.pfb located in /usr/share/fonts/default/ghostscript/

When you press Alt+F2 in KDE or put in the Konsole:
Code:
sudo kwrite /usr/share/fonts/default/ghostscript/n021004l.afm

NOTE the differnt extension .afm instead of .pfb !

you might give it a try (I will do)

UPDATE: here I get stuck I am sorry I cannot help any further, anyone who wants to jump in?
I do not know where to "tell" the system it should use Nimbus Roman No9 L medium when selecting Bold and not to use some other sort of font.

Perhaps an other workaround would be to search for the fontpackage.tar.gz and reinstall this specific font
« Last Edit: October 10, 2009, 15:08:46 PM by Michiel » Logged

Former Pardus user, now on OpenSUSE 12.2 (KDE)
Michiel
Administrator
Pardus Guru
*****
Posts: 799



View Profile
« Reply #6 on: October 10, 2009, 15:17:19 PM »

Still circling around the problem, here written down in other words from a Puppy Linux website:
Source: http://www.puppylinux.com/news/news400a7-400b.htm

The default font in a new document is 'Nimbus Roman No 9 L', and the system maps 'Times New Roman' to that font also. When I chose bold text, it did not display as bold. This bug must be in all prior puppies -- yep, I just checked Puppy 3.01, and reading /usr/share/fonts/default/Type1/fonts.dir shows that the Nimbus Roman No9 L bold font is missing. There are normal-regular, normal-italic, italic and bold-italic, but no plain bold.

Something is very wrong with the Nimbus Roman No9 L font. I looked at the fonts directory in the Ghostscript-fonts 8.11 package (provided with the T2 build) and the Nimbus Roman No9 L bold-regular is there (as shown in 'fonts.scale' and 'fonts.dir'). Fine, but when I run 'mkfontscale' and 'mkfontdir' in that directory, the 'fonts.scale' and 'fonts.dir' files generated in the directory are wrong -- the bold-regular font has disappeared and has been replaced with duplicate medium-regular and medium-italic entries. The other fonts are alright.

I need to download a later set of URW Type1 fonts.
Logged

Former Pardus user, now on OpenSUSE 12.2 (KDE)
Michiel
Administrator
Pardus Guru
*****
Posts: 799



View Profile
« Reply #7 on: October 10, 2009, 15:31:36 PM »

Debian Bug Importer  wrote on 2005-04-04:       #29

Message-Id: <email address hidden>
Date: Sat, 02 Apr 2005 18:02:23 -0500
From: Matthias Klose <email address hidden>
To: <email address hidden>
Cc: Matthias Klose <email address hidden>, Masayuki Hatta (mhatta) <email address hidden>
Subject: Fixed in NMU of gsfonts 8.14+v8.11+urw-0.2

tag 249089 + fixed
tag 261895 + fixed
tag 276511 + fixed
tag 279544 + fixed

quit

This message was generated automatically in response to a
non-maintainer upload. The .changes file follows.

[...]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sun, 3 Apr 2005 01:00:14 +0200
Source: gsfonts
Binary: gsfonts
Architecture: source all
Version: 8.14+v8.11+urw-0.2
Distribution: unstable
Urgency: medium
Maintainer: Masayuki Hatta (mhatta) <email address hidden>
Changed-By: Matthias Klose <email address hidden>
Description:
 gsfonts - Fonts for the Ghostscript interpreter(s)
Closes: 249089 261895 276511 279544
Changes:
 gsfonts (8.14+v8.11+urw-0.2) unstable; urgency=medium
 .
   * Merge 8.14+v8.11-0.1ubuntu1, fix font weight of the Nimbus Roman No 9 L
     fonts (closes: #249089, #261895, #276511, #279544).

Files:
 26bb3fc8488bb6fb3e6048f79a8512ea 673 text optional gsfonts_8.14+v8.11+urw-0.2.dsc
 2cb7e11237f4f768fe3280639de1eae4 244853 text optional gsfonts_8.14+v8.11+urw-0.2.diff.gz
 594e875724666ddba788f1b91d5ffdee 3721928 text optional gsfonts_8.14+v8.11+urw-0.2_all.deb

[...]

Perhaps the Pardus people should try to search for 8.14 and take that one?
http://repository.maemo.org/pool/chinook/free/g/gsfonts/
What is a bit weird is that the package contineud to be maintaiend as gsfonts in Debian/Ubuntu like systems, and the Ghostscript-fonts 8.11 STD package has not changed for years when you visit the sourceforge page of ghostscript-fonts, 8.11 is the most recent version. Mon Jan 19 2004

Also RedHat fixed it, but how?
https://bugzilla.redhat.com/show_bug.cgi?id=97683
« Last Edit: October 10, 2009, 16:08:23 PM by Michiel » Logged

Former Pardus user, now on OpenSUSE 12.2 (KDE)
Michiel
Administrator
Pardus Guru
*****
Posts: 799



View Profile
« Reply #8 on: October 10, 2009, 16:14:21 PM »

Konsole output in my Pardus 2009:
Code:
michiel@laptop ~ $ fc-match Times
n021004l.pfb: "Nimbus Roman No9 L" "Medium"
michiel@laptop ~ $ fc-match "Nimbus Roman No9 L"
n021004l.pfb: "Nimbus Roman No9 L" "Medium"
michiel@laptop ~ $ fc-match "Nimbus Roman No9 L:Bold"
n021004l.pfb: "Nimbus Roman No9 L" "Medium"

so obviously something goes wrong by default for this specific font
Logged

Former Pardus user, now on OpenSUSE 12.2 (KDE)
Michiel
Administrator
Pardus Guru
*****
Posts: 799



View Profile
« Reply #9 on: October 10, 2009, 16:27:51 PM »

After putting the workaround code from the archlinux URL above
Code:
<match target="pattern">
     <test name="family">
         <string>Nimbus Roman No9 L</string>
     </test>
     <!-- Use regular instead. Append after matching is complete. -->
     <edit name="weight" mode="append">
         <const>regular</const>
     </edit>
 </match>
 <match target="pattern">
     <test name="family">
         <string>Nimbus Roman No9 L</string>
     </test>
     <!--Test if the requested font is medium or more-->
     <test name="weight" compare="more_eq">
         <const>medium</const>
     </test>
     <edit name="weight" mode="assign">
         <const>medium</const>
     </edit>
 </match>

into /etc/fonts/fonts.conf

I now get in the Konsole:
Code:
michiel@laptop ~ $ fc-match "Nimbus Roman No9 L"
n021003l.pfb: "Nimbus Roman No9 L" "Regular"

But whether this is a nice solution is questionable.

I might also try replacing the individuel font files (n021003l.pfb, n021003l.pfm, n021003l.afm, etcetc) with new ones from the gsfonts package, because weight is incorrect formulated in the font files of Nimbus Roman No9 L set.
« Last Edit: October 10, 2009, 16:30:02 PM by Michiel » Logged

Former Pardus user, now on OpenSUSE 12.2 (KDE)
Michiel
Administrator
Pardus Guru
*****
Posts: 799



View Profile
« Reply #10 on: October 10, 2009, 17:18:55 PM »

After putting the workaround code from the archlinux URL above
Code:
<match target="pattern">
     <test name="family">
         <string>Nimbus Roman No9 L</string>
     </test>
     <!-- Use regular instead. Append after matching is complete. -->
     <edit name="weight" mode="append">
         <const>regular</const>
     </edit>
 </match>
 <match target="pattern">
     <test name="family">
         <string>Nimbus Roman No9 L</string>
     </test>
     <!--Test if the requested font is medium or more-->
     <test name="weight" compare="more_eq">
         <const>medium</const>
     </test>
     <edit name="weight" mode="assign">
         <const>medium</const>
     </edit>
 </match>

into /etc/fonts/fonts.conf

I now get in the Konsole:
Code:
michiel@laptop ~ $ fc-match "Nimbus Roman No9 L"
n021003l.pfb: "Nimbus Roman No9 L" "Regular"

But whether this is a nice solution is questionable.

I might also try replacing the individuel font files (n021003l.pfb, n021003l.pfm, n021003l.afm, etcetc) with new ones from the gsfonts package, because weight is incorrect formulated in the font files of Nimbus Roman No9 L set.

tried all of this, so far no solution.
it mght well be that the fonts have to be actively recreated and installed from e.g. gsfonts 8.14  package instead of ghostscript-fonts 8.11 package
Logged

Former Pardus user, now on OpenSUSE 12.2 (KDE)
Michiel
Administrator
Pardus Guru
*****
Posts: 799



View Profile
« Reply #11 on: October 10, 2009, 21:25:51 PM »

PS: as nimbusromanno9l is metrically same as Times New Roman you might consider as a workaround for now to install the mscorefonts. Then use Times New Roman

http://en.pardus-wiki.org/HOWTO:MS_Fonts
Logged

Former Pardus user, now on OpenSUSE 12.2 (KDE)
6arts
Newbie
*
Posts: 3


View Profile
« Reply #12 on: October 12, 2009, 14:13:49 PM »

Hello All,

Thanks for your support. I post the bug report and this message in the forum a bit quickly...

In fact, I should have specified that I encountered the same issue few months ago when I tried the archlinux distribution (as you can see in the archlinux bug report)...

The problem is that I don't remember if I solve the issue in the archlinux...  I have a knowledge-gap...

I tried the modifications from the archlinux bug report but the issue is still there.

I don't think that it's an open office issue because I tried with Koffice after sending the report. So, it must be a font issue (as you told).

I'm looking for differences between the pardus font configuration and the mandriva one I'm currently using... But for the moment, I found anything except the ~/.fonts.conf ...
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!