On Tue, Feb 11, 2003 at 09:31:36PM -0800, Keith Packard wrote:> I just wrote an Xaw based app for viewing fonts that you might play with, > it should work on vanilla Solaris.Neat, that helps a lot. Looks like the problem does indeed only pop up when Sun''s render extension is being used. With the change to fonts.conf you suggested I see text, but without the change the window draws and immediately bombs with an X error when it tries to render the glyphs: X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 53 (X_CreatePixmap) Value in failed request: 0x20 Serial number of failed request: 2983 Current serial number in output stream: 3067 Thank you very much for the assistance.. -- Dan
On Tue, Feb 11, 2003 at 09:31:36PM -0800, Keith Packard wrote:> I just wrote an Xaw based app for viewing fonts that you might play with, > it should work on vanilla Solaris. > > $ cvs -d :pserver:anoncvs@keithp.com:/local/src/CVS login > Logging in to :pserver:anoncvs@keithp.com:2401/local/src/CVS > CVS password: <hit return> > $ cvs -d :pserver:anoncvs@keithp.com:/local/src/CVS co waterfall > $ cd waterfall > $ xmkmf -a > $ makeI ran this without first having run fc-cache. I get the error: Error: XtCreateWidget "styleName" requires non-NULL parent Is fc-cache mandatory? -- albert chin (china@thewrittenword.com)
Around 10 o''clock on Feb 12, Dan wrote:> X Error of failed request: BadValue (integer parameter out of > range for operation) > Major opcode of failed request: 53 (X_CreatePixmap) > Value in failed request: 0x20 > Serial number of failed request: 2983 > Current serial number in output stream: 3067Sun''s Render extension support is broken; Render requires that the server support pixmaps of depth 1, 4, 8, 16 and 32. As you can see above, the value ''0x20'' is not accepted for this request. -keith
Around 11 o''clock on Feb 13, Albert Chin wrote:> I ran this without first having run fc-cache. I get the error: > Error: XtCreateWidget "styleName" requires non-NULL parent > > Is fc-cache mandatory?It shouldn''t be, but there was a bug in fontconfig which made the per-user cache files break badly in many cases. Things should work a bit better now, but I''m still working in that area. -keith
Around 22 o''clock on Feb 11, Dan wrote:> Has anyone managed to get Xft working with the Solaris 9 > 12/02 release of Xsun with happy new XRender support?I assume Sun is testing things this way; it make little sense for them to do otherwise. However, you can make sure most things are working by disabling Render support in your ~/.fonts.conf file: <?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <!-- ~/.fonts.conf for per-user font configuration --> <fontconfig> <!-- Disables use of Render extension --> <match target="font"> <edit name="render" mode="assign"><bool>no</bool></edit> </match> </fontconfig> I just wrote an Xaw based app for viewing fonts that you might play with, it should work on vanilla Solaris. $ cvs -d :pserver:anoncvs@keithp.com:/local/src/CVS login Logging in to :pserver:anoncvs@keithp.com:2401/local/src/CVS CVS password: <hit return> $ cvs -d :pserver:anoncvs@keithp.com:/local/src/CVS co waterfall $ cd waterfall $ xmkmf -a $ make -keith
Has anyone managed to get Xft working with the Solaris 9 12/02 release of Xsun with happy new XRender support? I was able to compile and install fontconfig and Xft without too much trouble, however apps compiled with Xft support only show empty space where there should be text while scrolling BadDrawable errors in my console. I''m new to Xft, so I''m not entirely convinced it''s not just a configuration problem. Basically, here''s the procedure I followed: 1) Compiled and installed fontconfig. 2) Compiled and installed Xft. 3) Executed fc-cache as root -- it found a couple dozen fonts in /usr/openwin/lib/X11/fonts/TrueType along with a couple other similar paths. 4) Compiled QT. 5) :( 6) Thinking maybe it would work better if I also used the version of libXRender bundled with fcpackage_2.1 rather than the one included with Solaris, I compiled and installed libXRender.so and recompiled Xft and QT to use the new version. 7) :( again. I''ve tried running the programs through truss and I can see them find the configuration file in /etc/fonts, dig through all of the font directories mentioned therein, and pick out a couple fonts to use. The problem seems to appear when it comes time to do the actual rendering of the glyphs. Recompiling QT each time I make a change is a little time consuming -- are there any Xft example apps out there that might draw a simple window with some text that one could use for testing? Unfortunately, I''m not so good at the X Window programming. So has anybody seen an invisible font problem similar to this? Or is maybe the RENDER module included with this new release of Solaris every bit as experimental as Sun has indicated? Thanks for any input.. -- Dan Holm AlertLogic [ http://www.alertlogic.net ]