Apache OpenOffice (AOO) Bugzilla – Issue 23597
Too small metrics from reference device
Last modified: 2004-02-10 11:56:56 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.
Just adding myself to CC on this one. Thanks, kevin
.
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.
Fixed in CWS vcl7pp1r4. HDU->US: OOo still cannot stretch or squeeze X11 font, only their metrics.
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.
HDU->US: please verify in CWS vcl7pp1r4.
Changing resolution to FIXED in order to mark issue as VERIFIED.
Issue VERIFIED.
*** Issue 24600 has been marked as a duplicate of this issue. ***
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
ok in master work space srx645_m27s1-1.8738. Fix will be in forthcoming OOo 1.1.1. Closing Resolved/Verified issue.
On linux sparc the test is to add MS fonts through spadmin. This problem is not fixed yet in cws_srx645_ooo111fix3.
@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.
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