Issue 4889 - Weird font substitution and smart replacement
Summary: Weird font substitution and smart replacement
Status: CLOSED DUPLICATE of issue 4366
Alias: None
Product: Writer
Classification: Application
Component: ui (show other issues)
Version: OOo 1.0.0
Hardware: PC Linux, all
: P3 Trivial with 2 votes (vote)
Target Milestone: ---
Assignee: ulf.stroehler
QA Contact: issues@sw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-15 10:25 UTC by Unknown
Modified: 2003-09-08 16:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
URW "bitstream" font renders long dash badly (20.34 KB, image/gif)
2002-05-27 15:31 UTC, Unknown
no flags Details
URW "bookman l" font renders long dash ok (20.92 KB, image/gif)
2002-05-27 15:32 UTC, Unknown
no flags Details
Bitstream "charter" font renders latin2 characters badly (20.79 KB, image/gif)
2002-05-27 15:40 UTC, Unknown
no flags Details
Additional data: font size affects the problem (319 bytes, text/plain)
2002-06-14 13:51 UTC, ph10
no flags Details
A set of tests regarding font rendering (119.07 KB, text/plain)
2002-07-18 12:31 UTC, Unknown
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2002-05-15 10:25:05 UTC
Using the supplied builds of OOo 1.0, " (double quotes) are replaced by question
marks. Checking the autocorrect/autoformat option, I noticed that bullets are
also replaced by question marks. Even the dash is replaced by question marks.
Further checking the insert special character menu I also noticed that the font
table is corrupted (though I can use TrueType fonts et al in the document
itself, as well as other apps). I'd have to resort to using the Gnome Character
map to insert special character.I even turned off replacement of quotes and
dashes just to present a remedy. However, I don't have the time to convert even
more files created before this happened.

Initially this doesn't happen, but after two or three restarts of the program,
this happens.

I don't know if my setup would influence such in OpenOffice 1.0, but here it is
anyway: Debian 2.2, the latest Ximian GNOME, 700MHz Duron processor, XFree 4.1.
Any work around to this weird quirk?
Comment 1 Unknown 2002-05-24 12:54:33 UTC
I can add that this behaviour is not present for all fonts. My
OpenOffice has no installed fonts (actually just one); it takes all
its fonts from the X server (centralized X font server actually). I
noticed that the URW fonts behave nicely. All URW fonts render both
special chars like the special dash, simple and double quotes and some
EE characters. Beside URW, few other fonts behave like this. I am not
sure why this happens.

Also I have checked in gfontsel (a custom xfontsel for GNOME) and I
see that many fonts that have ISO8859-2 pages don't work with these
characters in OpenOffice. I know OpenOffice uses UTF and switches
pages automatically. Again, although some fonts seem to work with ISO2
characters, others simply display a question mark, or an empty box, or
empty space in place of the required characters.
Comment 2 Joost Andrae 2002-05-27 14:41:14 UTC
Joost->Paolo: please read
http://www.openoffice.org/FAQs/fontguide.html#8 and mention it here if
it helped.
Comment 3 Unknown 2002-05-27 15:31:30 UTC
Created attachment 1785 [details]
URW "bitstream" font renders long dash badly
Comment 4 Unknown 2002-05-27 15:32:20 UTC
Created attachment 1786 [details]
URW "bookman l" font renders long dash ok
Comment 5 Unknown 2002-05-27 15:40:44 UTC
Created attachment 1787 [details]
Bitstream "charter" font renders latin2 characters badly
Comment 6 Unknown 2002-05-27 15:42:20 UTC
> Joost->Paolo: please read
> http://www.openoffice.org/FAQs/fontguide.html#8 and mention it here if
> it helped.

The problem described in the above link does not seem to be related to
this issue. I found out about the RedHat ulT1mo bug the hard way and
after eliminating all ulT1mo fonts the issue was still present.

Here are some more facts about the bug. Executing "fslsfonts -server
unix/:7100 | grep bookman" I get the following:

-urw-bookman l-demi bold-i-normal--0-0-0-0-p-0-iso8859-1
-urw-bookman l-demi bold-i-normal--0-0-0-0-p-0-iso8859-2
-urw-bookman l-demi bold-r-normal--0-0-0-0-p-0-iso8859-1
-urw-bookman l-demi bold-r-normal--0-0-0-0-p-0-iso8859-2
-urw-bookman l-light-i-normal--0-0-0-0-p-0-iso8859-1
-urw-bookman l-light-i-normal--0-0-0-0-p-0-iso8859-2
-urw-bookman l-light-r-normal--0-0-0-0-p-0-iso8859-1
-urw-bookman l-light-r-normal--0-0-0-0-p-0-iso8859-2
-urw-bookman-demibold-i-normal--0-0-0-0-p-0-iso8859-1
-urw-bookman-demibold-i-normal--0-0-0-0-p-0-iso8859-2
-urw-bookman-demibold-r-normal--0-0-0-0-p-0-iso8859-1
-urw-bookman-demibold-r-normal--0-0-0-0-p-0-iso8859-2
-urw-bookman-light-i-normal--0-0-0-0-p-0-iso8859-1
-urw-bookman-light-i-normal--0-0-0-0-p-0-iso8859-2
-urw-bookman-light-r-normal--0-0-0-0-p-0-iso8859-1
-urw-bookman-light-r-normal--0-0-0-0-p-0-iso8859-2

As you can see, I have thwo URW bookman families, the simple "bookman"
family and the "bookman l" family. I have created "case1.gif" and
"case2.gif" that show the long dash rendering using each of the two
fonts. (the comment line for "case1.gif" is wrong, the font is
"bookman" not "bitstream").

Both examples contain the same text. The font is changed by selecting
the text and then selecting the new text. So, the long dash is ok, but
the rendering is wrong for some fonts.

Finally, I will attach a "case3.gif" that shows the same text rendered
with "bitstream charter" (-bitstream-charter-medium-r-normal), for
wich I have iso8859-1, iso8859-2 and iso8859-9 encodings present. As
you'll see, the latin2 characters are not rendered correctly. I know,
this is a separate issue, but I think the root of the problem might be
the same.
Comment 7 ph10 2002-06-14 13:51:04 UTC
Created attachment 1955 [details]
Additional data: font size affects the problem
Comment 8 ph10 2002-06-14 14:14:24 UTC
Oops. I should have put this as a comment, rather than as an
attachment. Sorry. Just learning to drive this Zilla...

I have the same problem with quotes etc using OO 1.0.0 on a Debian
Linux laptop, but with a weird twist: Using the Times font, quotes are
replaced with question marks at some sizes (e.g. 28 point) but with
correct typographic quotes at other sizes (e.g. 26 point). The point
size also affect the rendering of dashes. (This was in a presentation
imported from SO 5.2.)
Comment 9 Unknown 2002-07-18 12:31:02 UTC
Created attachment 2276 [details]
A set of tests regarding font rendering
Comment 10 Unknown 2002-07-18 12:31:41 UTC
Ok, now 1.0.1 is out and I had to test this issue on 1.0.1.
Unfortunately, away it has not gone. I am still confused as to wether
this problem is due to bad fonts being installed on Linux or due to
OO's inability to choose the right font foundry.

The report for my testing is quite extensive so I will attach it as a
text file. Mind you, I have used OO 1.0.1 on a RedHat Linux 7.3 i386
box with the Ult1Mo fonts removed (those were problematic and helped
no one, that's a certainty). There are no extra fonts installed in
OpenOffice.

The first question that comes to mind: I am pretty sure that
OpenOffice does not use the system fontpath to collect fonts. My
fontpath indicates "unix/:7100; tcp/fontserver:7100". My system can
see all the fonts from the centralized fontserver, then why can't
OpenOffice see them? Or, alternatively, how can I indicate OpenOffice
what the correct fontpath is.

The second issue, as one can see from my report, most of the trouble
comes from bad choice of font foundry. Clearly OpenOffice finds more
than one instance of a font in different foundries and makes a choice
based on... what? I think users like me would benefit from being able
to alter these automatic choices.

I took all the fonts from the font selection dropdown except for the
dingbats, starbats, starmath, symbol, opensymbol and other
non-alphanumeric fonts. I have created a text containing one simple
dash (word1 -- word2), a pair of double quotes (autoreplaced by
OpenOffice to the ``word'' form) and one long dash (1999--2002). Then
a set of ISO-8859-2 specific characters. For each font selection I
have tried to show what the result was, what the aspect of the font
was (some fonts obviously don't appear antialiased and i thought this
might have been important) and what the fonts are present in the
fontserver (the ones that might correspond to each font name).
Comment 11 stefan.baltzer 2002-12-13 15:17:28 UTC
Reassigned to Ulf.
Comment 12 ulf.stroehler 2003-01-28 16:34:04 UTC
For problems related to Smart Quotes especially on Linux/Unix see also
issue 4008.

*** This issue has been marked as a duplicate of 4366 ***
Comment 13 michael.bemmer 2003-03-11 17:20:53 UTC
As mentioned on the qa dev list on March 5th I will close all resolved duplicate
issues. Please see this posting for details. First step in IssueZilla is
unfortunately to set them to verified.
Comment 14 michael.bemmer 2003-03-11 17:24:06 UTC
As mentioned on the qa dev list on March 5th I will close all resolved duplicate
issues. Please see this posting for details. First step in IssueZilla is
unfortunately to set them to verified.
Comment 15 michael.bemmer 2003-03-11 17:26:08 UTC
As mentioned on the qa dev list on March 5th I will close all resolved duplicate
issues. Please see this posting for details. First step in IssueZilla is
unfortunately to set them to verified.
Comment 16 michael.bemmer 2003-03-11 17:35:37 UTC
As mentioned on the qa dev list on March 5th I will close all resolved duplicate
issues. Please see this posting for details.