Issue 10070 - OOO_STABLE_1_PORTS/X11: vcl libxrender & font discovery fixes
Summary: OOO_STABLE_1_PORTS/X11: vcl libxrender & font discovery fixes
Status: CLOSED FIXED
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: OOo 1.0.1
Hardware: Mac Mac OS X, all
: P3 Trivial (vote)
Target Milestone: not determined
Assignee: fa
QA Contact: issues@porting
URL:
Keywords: merge_pending
Depends on:
Blocks:
 
Reported: 2002-12-14 07:02 UTC by fa
Modified: 2004-03-25 07:43 UTC (History)
3 users (show)

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


Attachments
cd to SRC_ROOT/vcl, patch -p0 < /path/to/patchfile. Cleans up libXrender loading and adds TrueType Font discovery fix (7.29 KB, patch)
2002-12-14 07:03 UTC, fa
no flags Details | Diff
Suggested merge of OSX and UNX gcach_xpeer.cxx (20.13 KB, text/plain)
2002-12-17 09:05 UTC, hdu@apache.org
no flags Details
place file in vcl/unx/source/gdi (20.13 KB, text/plain)
2002-12-17 09:14 UTC, fa
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description fa 2002-12-14 07:02:12 UTC
Clean up our libxrender loading code and add our TrueType font discovery hack.
Comment 1 fa 2002-12-14 07:03:31 UTC
Created attachment 4028 [details]
cd to SRC_ROOT/vcl, patch -p0 < /path/to/patchfile.  Cleans up libXrender loading and adds TrueType Font discovery fix
Comment 2 fa 2002-12-14 09:07:23 UTC
Correction:

vcl.xrender.OOO_STABLE_1_PORTS.121402.patch should be applied with:

cd to vcl/unx/source/gdi
patch -p0 < /path/to/patchfile

Dan
Comment 3 fa 2002-12-14 09:30:48 UTC
Please approve the vcl 121402 patch for integration into
OOO_STABLE_1_PORTS.

Dan
Comment 4 matthias.huetsch 2002-12-14 16:35:10 UTC
Hi Dan,

the patch looks good, is entirely MACOSX specific, and is thus approved.
Removing the 'approval_pending' keyword. Just go ahead.

Matthias
Comment 5 ed 2002-12-16 00:31:05 UTC
Committed to OOO_STABLE_1_PORTS.  Added keyword merge pending.
Comment 6 hdu@apache.org 2002-12-16 09:59:47 UTC
Hi, I'd love to have the MACOSX and UNIX code converge to reduce  
maintenance work in the future. What do you think of  
http://gsl.openoffice.org/source/browse/gsl/vcl/unx/source/gdi/gcach_xpeer.cxx?rev=1.27&content-type=text/x-cvsweb-markup  
  
With the one exception for XRenderCompositeString32 vs.  
XRenderCompositeString16 everything should be mergeable.  
  
Comment 7 fa 2002-12-16 19:25:49 UTC
Herbert,

Why don't you go ahead and make the switch.  Remember that we need a
#ifdef MACOSX/#endif around the #include <dlfcn.h> because we're not
using that header.  We'll test and notify/commit changes as necessary.

With the XRenderCompositeString32(), is there any reason why we cannot
use this on Darwin?  It _is_ exported from our libXrender.dylib, so we
should be able to call it.  Anyway, don't bother changing the 32->16,
we will test and modify if necessary.

Dan
Comment 8 hdu@apache.org 2002-12-17 09:01:56 UTC
The #include <dlfcn.h> is no longer needed with OSL loading.  
I forgot to remove it when I merged the two branches.  
   
I suggest to keep XRenderCompositeString16 until the ports  
branch moves to SRX644. I have yet to see a font with more  
than 65k glyphs, but with non-BMP code handling becoming 
mandatory in some locales we should be prepared. 
 
Does the attached gcach_xpeer.cxx work on OSX? 
 
Comment 9 hdu@apache.org 2002-12-17 09:05:24 UTC
Created attachment 4067 [details]
Suggested merge of OSX and UNX gcach_xpeer.cxx
Comment 10 fa 2002-12-17 09:13:18 UTC
I believe the Mac OS X section is around the wrong code...  The
XRenderCompositeString16 is for X and the 32 for non Mac OS X, right?

I have attached the corrected file.  I have verified that it does
indeed compile with my changes (ie the CompositeString16 for OS X and
32 for others) and does indeed work correctly at run-time.

dAn
Comment 11 fa 2002-12-17 09:14:00 UTC
Created attachment 4069 [details]
place file in vcl/unx/source/gdi
Comment 12 fa 2002-12-17 09:14:46 UTC
2002-12-17 01:14 PST file contains my changes and is verified to 
compile and operate correctly on OS X.

dan
Comment 13 hdu@apache.org 2002-12-17 10:49:53 UTC
Great. Since I cannot check in directly into head 
I'll put it into a child workspace which will be 
promoted to head in a couple of days. Please tag 
it with the ports tag then. 
 
Comment 14 Martin Hollmichel 2004-03-25 07:43:15 UTC
close issue.