Issue 22529 - Charater spacing wrong at large sizes for some fonts
Summary: Charater spacing wrong at large sizes for some fonts
Status: CLOSED FIXED
Alias: None
Product: gsl
Classification: Code
Component: code (show other issues)
Version: OOo 1.1
Hardware: PC Solaris
: P3 Trivial (vote)
Target Milestone: OOo 1.1.2
Assignee: philipp.lohmann
QA Contact: issues@gsl
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2003-11-17 10:38 UTC by jameslee
Modified: 2004-04-23 14:40 UTC (History)
4 users (show)

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


Attachments
OOo document (5.65 KB, application/octet-stream)
2003-11-17 10:40 UTC, jameslee
no flags Details
Screen grab of OOo (5.88 KB, image/png)
2003-11-17 10:41 UTC, jameslee
no flags Details
Output file (5.37 KB, application/PostScript)
2003-11-17 10:42 UTC, jameslee
no flags Details
OK on win xp, OOo 1.1, but problem on solaris (34.60 KB, image/gif)
2003-11-18 03:26 UTC, utomo99
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description jameslee 2003-11-17 10:38:51 UTC
When using some fonts at large size the characters are spaced much too close
such that they overlap.

Bookman is used in my example but other are similarly affected, eg, Avant Garde,
Palatino, Zapf Chancery.

Attachments coming up...
Comment 1 jameslee 2003-11-17 10:40:43 UTC
Created attachment 11328 [details]
OOo document
Comment 2 jameslee 2003-11-17 10:41:48 UTC
Created attachment 11329 [details]
Screen grab of OOo
Comment 3 jameslee 2003-11-17 10:42:38 UTC
Created attachment 11330 [details]
Output file
Comment 4 utomo99 2003-11-18 03:25:53 UTC
I cannot reproduce in win xp, OOo 1.1
so It maybe solaris problem. 

I will attach the screenshot
Comment 5 utomo99 2003-11-18 03:26:42 UTC
Created attachment 11357 [details]
OK on win xp, OOo 1.1, but problem on solaris
Comment 6 jameslee 2003-11-18 09:23:34 UTC
> I cannot reproduce in win xp, OOo 1.1

So what? Had you considered reproducing the conditions that I reported
as causing the problem? PLEASE, PLEASE, investigate these issues
properly.


> so It maybe solaris problem.

I know it is a Solaris problem, why do you think I pointed it out
first time around only to have you say "maybe"? Stop wasting time.
Comment 7 mci 2003-12-15 12:54:37 UTC
reassigned to hdu

hi hdu, this is a duplicate of that Issue we talked about last week, at the
moment I just don't know the Issue number....
Comment 8 hdu@apache.org 2003-12-15 14:28:36 UTC
The problem seems to be that the only Bookman font available for the display is
not scalable and is available only in a very few selected bitmap sizes. Please
attach the results of the command
xlsfonts | grep -i bookman
to this issue, so we can check if this explanation makes sense.
Comment 9 jameslee 2003-12-16 10:03:36 UTC
$ xlsfonts | grep -i bookman
-itc-bookman-demi-i-normal--0-0-0-0-p-0-iso8859-1
-itc-bookman-demi-r-normal--0-0-0-0-p-0-iso8859-1
-itc-bookman-light-i-normal--0-0-0-0-p-0-iso8859-1
-itc-bookman-light-r-normal--0-0-0-0-p-0-iso8859-1
-urw-itc bookman-demi-i-normal--0-0-0-0-p-0-iso8859-1
-urw-itc bookman-demi-i-normal--0-0-72-72-p-0-iso8859-1
-urw-itc bookman-demi-i-normal--10-100-72-72-p-61-iso8859-1
-urw-itc bookman-demi-i-normal--12-120-72-72-p-72-iso8859-1
-urw-itc bookman-demi-i-normal--14-140-72-72-p-85-iso8859-1
-urw-itc bookman-demi-i-normal--6-60-72-72-p-36-iso8859-1
-urw-itc bookman-demi-i-normal--8-80-72-72-p-48-iso8859-1
-urw-itc bookman-demi-r-normal--0-0-0-0-p-0-iso8859-1
-urw-itc bookman-demi-r-normal--0-0-72-72-p-0-iso8859-1
-urw-itc bookman-demi-r-normal--10-100-72-72-p-60-iso8859-1
-urw-itc bookman-demi-r-normal--12-120-72-72-p-73-iso8859-1
-urw-itc bookman-demi-r-normal--14-140-72-72-p-84-iso8859-1
-urw-itc bookman-demi-r-normal--6-60-72-72-p-36-iso8859-1
-urw-itc bookman-demi-r-normal--8-80-72-72-p-48-iso8859-1
-urw-itc bookman-light-i-normal--0-0-0-0-p-0-iso8859-1
-urw-itc bookman-light-i-normal--0-0-72-72-p-0-iso8859-1
-urw-itc bookman-light-i-normal--10-100-72-72-p-56-iso8859-1
-urw-itc bookman-light-i-normal--12-120-72-72-p-66-iso8859-1
-urw-itc bookman-light-i-normal--14-140-72-72-p-80-iso8859-1
-urw-itc bookman-light-i-normal--6-60-72-72-p-35-iso8859-1
-urw-itc bookman-light-i-normal--8-80-72-72-p-45-iso8859-1
-urw-itc bookman-light-r-normal--0-0-0-0-p-0-iso8859-1
-urw-itc bookman-light-r-normal--0-0-72-72-p-0-iso8859-1
-urw-itc bookman-light-r-normal--10-100-72-72-p-57-iso8859-1
-urw-itc bookman-light-r-normal--12-120-72-72-p-69-iso8859-1
-urw-itc bookman-light-r-normal--14-140-72-72-p-80-iso8859-1
-urw-itc bookman-light-r-normal--6-60-72-72-p-35-iso8859-1
-urw-itc bookman-light-r-normal--8-80-72-72-p-46-iso8859-1
bookman-demi
bookman-demiitalic
bookman-light
bookman-lightitalic
Comment 10 hdu@apache.org 2003-12-17 08:21:36 UTC
Does it help if you enable the checkbox in the menue
Tools -> Options -> Text Document -> General -> Use Printer Metrics?

If yes, then the problem is probably related to issue 23597.
Comment 11 jameslee 2003-12-17 10:37:24 UTC
Yes (for the widths), and no because using the printer metrics bring there own
horrible set of problems. See Issue 11191. I understood that "Use Printer
Metrics" only existed as a back compatibility with a quirk of SO 5.2.
Comment 12 hdu@apache.org 2003-12-17 11:21:52 UTC
HDU->PL: Is there any good reason why "/usr/openwin/lib/X11/fonts/TrueType" is
not in the default search path for fonts? And while you are at it please also
add ghostscript's font path. Finding these font files is absolutely essential
for getting good metrics.

HDU->JamesLee: The best solution for you seems to be to use the "spadmin" tool
(in OOo's program directory) to make a scalable Bookman font visible to OOo.
E.g. from the font directory /usr/openwin/lib/X11/fonts/TrueType. Also
ghostscript from http://www.sunfreeware.com/ has a Bookman font in
/usr/share/ghostscript/fonts/. The use of printer metrics for formatting is a
good idea when the fonts you use are e.g. only existant on the printer.

HDU->HDU: the problem that X11 fonts will be limited to a maximum height of 250
pixel will be addressed in issue 23597.
Comment 13 jameslee 2003-12-18 11:50:07 UTC
> HDU->JamesLee: The best solution for you seems to be to
> use the "spadmin" tool (in OOo's program directory) to make
> a scalable Bookman font visible to OOo. E.g. from the font
> directory /usr/openwin/lib/X11/fonts/TrueType.

/usr/openwin/lib/X11/fonts/TrueType doesn't have Bookman fonts as such, they are
called BookmanOldStyle.  If I load it as a TT the name won't be Bookman-Demi.
This means the print file will not use (ask for from printer) Bookman but
include its own BookmanOldStyle. Neither are there some of the other fonts which
have the same problem provided as TTs, eg, Palatino.


> Also ghostscript from http://www.sunfreeware.com/

http://www.blastwave.org/packages/ghostscript
(and note the maintainer.)


> has a Bookman font in
> /usr/share/ghostscript/fonts/.

On Solaris it shouldn't.


> The use of printer metrics for formatting is a
> good idea when the fonts you use are e.g. only
> existant on the printer.

The back-compatibility problem with printer metrics makes the option unusable.

Please can you explain something here, if the font is only on the printer, how
does OOo know anything about it's metrics or is able to show it?

There seems to be a fundamental problem here, with using the screen's font
metrics. If a screen provides a slightly different font won't the page layout
change? Shouldn't the metrics always come from OOo and not the X-server (which
can be another machine). Also consider exchange of documents between machines
and OSes, how are the metrics know and kept constant between Solaris, Mac & MSW?
What is ./share/psprint/fontmetric/Bookman-Demi.afm for?
Comment 14 hdu@apache.org 2003-12-18 14:03:00 UTC
> If I load it as a TT the name won't be Bookman-Demi. This means the print
> file will not use (ask for from printer) Bookman butinclude its own
> BookmanOldStyle.

The edit field in the font combo box is freestyle. If you type "Bookman" in
there and set the Bold attribute, then most probably Bookman-Demi will be used
if this gets printed to a PS printer.

It is a little unfortunate that only two weights Bold/Non-Bold and two slants
Italic/Non-Italic are available to the user even if a font has many more
variations. If you think it would be a major enhancement to be able to select
all of the variations I suggest to submit a feature task to "BH".

> Please can you explain something here, if the font is only on the printer, how
> does OOo know anything about it's metrics or is able to show it?

The AFM files have the metrics and the license for them is usually very liberal,
so they are easily available. OOo shows them on the display by using the font
with a matching name or its fallbacks. E.g. Bookman could fall back to Bookman
Oldstyle. This only happens for printer dependent formatting.

> There seems to be a fundamental problem here, with using the screen's font
> metrics. If a screen provides a slightly different font won't the page layout
> change?

Yes, that is a problem, but for printer independent formatting only the metrics
from the display fonts are available. Are you suggesting that even for printer
independent formatting the metrics of the standard postscript fonts should be
used, even if a font with a matching name is available on the system that has
different metrics?

> Also consider exchange of documents between machines and OSes, how are the
> metrics know and kept constant between Solaris, Mac & MSW?

The well known fonts and their aliases are usually metrically compatible. E.g.
Helvetica<->Arial, Times<->TNR, etc. Other than that it is impossible to know
all metrics of all fonts. The idea is that if you want to use the same font on
many different systems, this same font must be available on all these systems.
We are considering to add font embedding though.

> What is ./share/psprint/fontmetric/Bookman-Demi.afm for?

This is for printer dependent formatting if the printer description in
./share/psprint/driver/ claims that the printer has a builtin font named
"Bookman-Demi".

> The back-compatibility problem with printer metrics makes the option unusable.

I'm quite sure that at least for PS printers the different layout between
different printers would be solved, if they were set to the same device
resolution (File->PrinterSettings->Advanced->Device->Resolution).

> (and note the maintainer.)

:-) Nice to meet you.

HDU->OS: There is of course also the issue that even for printer independent
formatting you ask the printer for its fonts and create the list in the font
combobox for it. Would you like to comment on the philosophy behind using the
printer font names for printer independend formatting?
Comment 15 Oliver Specht 2003-12-19 12:04:53 UTC
The 'philosophy' hasn't changed with introducing printer independent layout. 

I submitted issue 23712 to change this.
Comment 16 philipp.lohmann 2004-01-12 13:34:56 UTC
Will add the font path /usr/openwin/lib/X11/fonts/TrueType to the standard
search path.
Comment 17 philipp.lohmann 2004-03-10 14:24:44 UTC
added said font path to default search,

fixed in CWS vclpp3bugs
Comment 18 philipp.lohmann 2004-03-26 11:37:17 UTC
verified in CWS vcl7pp3bugs
Comment 19 philipp.lohmann 2004-04-23 14:40:54 UTC
integrated in 645m38, closing