Issue 23597 - Too small metrics from reference device
Summary: Too small metrics from reference device
Status: CLOSED FIXED
Alias: None
Product: gsl
Classification: Code
Component: code (show other issues)
Version: 680m17
Hardware: All Linux, all
: P3 Trivial (vote)
Target Milestone: OOo 1.1.1
Assignee: ulf.stroehler
QA Contact: issues@gsl
URL: http://gsl.openoffice.org/servlets/Re...
Keywords:
: 24600 (view as issue list)
Depends on: 23601
Blocks:
  Show dependency tree
 
Reported: 2003-12-16 14:45 UTC by hdu@apache.org
Modified: 2004-02-10 11:56 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description hdu@apache.org 2003-12-16 14:45:08 UTC
See the thread starting in
http://gsl.openoffice.org/servlets/ReadMsg?list=dev&msgNo=1073.

Recreation:
  - remove all scalable fonts from OOo's view,
  - install the urw-2.0.26 fonts from RH8
  - add them to the X11 font path
  - start office, select the Times font and type text (using printer independent
layout)
=> the line widths etc. are way too small.

The root causes for this is:
- the Writer increased the resolution of its reference device from 600dpi to 9600dpi
- there is an environment variable SAL_MAXFONTHEIGHT which limits the maximum
size of scalable bitmap fonts, it defaults to 250 pixels.

So when we need the metrics of a 2000 pixel X11 font from the reference device
the font is silently clipped to 250 pixels and the resulting metrics are 1/8 of
what they should be.
Comment 1 khendricks 2003-12-16 15:03:57 UTC
Just adding myself to CC on this one. 
 
Thanks, 
 
kevin 
Comment 2 hdu@apache.org 2003-12-17 12:11:18 UTC
.
Comment 3 ulf.stroehler 2003-12-17 14:03:01 UTC
Alternative reproduction:
insert Draw Stretched Text Box (any application) insert some Text (with big font
sizes e.g. 32pt) and change the font to any XFont. Glyphs are painted one into
another.

Adjusting Prio and Target as agreed with HDU.
Comment 4 hdu@apache.org 2003-12-17 17:13:09 UTC
Fixed in CWS vcl7pp1r4.

HDU->US: OOo still cannot stretch or squeeze X11 font, only their metrics.
Comment 5 hdu@apache.org 2003-12-18 12:02:03 UTC
The problem was hidden behind the fact that the font files for scalable fonts
are usually picked up by psprint's font manager. Psprint's font manager didn't
get them because of issue 23601. If the font files are found the metrics are
extracted directly from them and the related X11 fonts are not needed, so that
requesting large X11 fonts is not needed.
Comment 6 hdu@apache.org 2003-12-18 15:00:21 UTC
HDU->US: please verify in CWS vcl7pp1r4.
Comment 7 ulf.stroehler 2004-01-07 13:54:48 UTC
Changing resolution to FIXED in order to mark issue as VERIFIED.
Comment 8 ulf.stroehler 2004-01-07 13:55:55 UTC
Issue VERIFIED.
Comment 9 sparcmoz 2004-01-20 21:00:11 UTC
*** Issue 24600 has been marked as a duplicate of this issue. ***
Comment 10 ulf.stroehler 2004-01-22 16:12:38 UTC
Re-verified on re-synced cws vcl7pp1r4.

US->US: for reproduction simply remove all entries from the font path except:
/usr/X11R6/lib/X11/fonts/misc:unscaled
usr/X11R6/lib/X11/fonts/75dpi:unscaled
Comment 11 ulf.stroehler 2004-01-28 22:04:16 UTC
ok in master work space srx645_m27s1-1.8738.
Fix will be in forthcoming OOo 1.1.1.
Closing Resolved/Verified issue.
Comment 12 sparcmoz 2004-02-09 20:50:11 UTC
On linux sparc the test is to add MS fonts through spadmin. This problem is not
fixed yet in cws_srx645_ooo111fix3.

Comment 13 ulf.stroehler 2004-02-10 11:00:43 UTC
@sparcmoz: this issue is about XFonts. You are talking about ms fonts, assumedly
TrueTypes. Thus you are experiencing something different. Pls. file a new issue
out of your findings. Thanks.
Comment 14 khendricks 2004-02-10 11:56:56 UTC
Hi, 
 
But adding MS Truetype font like Times made my problem go away too.  The problem was 
caused in my case by Postscript fonts issues from the URW set of fonts but since preference is 
given to Truetype fonts, simply adding Truetype Times New Roman font will prevent the use of 
just Postscript "Times" as a fallback and lo and behold the problem appears to be solved 
(eventhough it is just being hidden by choice of a truetype font over the fallback Times postscript 
font. 
 
Can we please verify that the revisions including your fix for this issue have really made it into 
OOo cws_srx645_ooo111fix3 tagged tree? 
 
Thanks, 
 
Kevin