Alan:
Thank you for this information. We now understand why we were not able
to replicate our Xsun results under Xnewt regardless of how we set the
font path since Xnewt uses the path differently.
With your suggested addition of the {:unscaled,:scaled} prefixes which
we were previously unaware of, we've been able to set a font path that
fixes our problem application without causing unintended side effects.
You mention that in Solaris 11 Express the font path is implemented as
symlinks in the /etc/X11/fontpath.d - does this implementation still
support the {:unscaled,:scaled} hints?
To us, your suggested font path emulating the Xsun logic makes far more
sense than the default path built into Xnewt since it has a much better
chance of selecting a readable font. I'm going to file a formal
enhancement request suggesting this, but if anyone on the Sunray team
sees this please consider it an unofficial request for now :-)
I think the best way to implement this at our site in the short run is
to create a startup script under /usr/dt/config/Xsession.d
(/etc/dt/config/Xsession.d would be better but I believe there are
issues with CAM not looking there).
xset fp= /usr/X11/lib/X11/fonts/F3bitmaps:unscaled
xset fp+ /usr/X11/lib/X11/fonts/misc:unscaled
xset fp+ /usr/X11/lib/X11/fonts/75dpi:unscaled
xset fp+ /usr/X11/lib/X11/fonts/100dpi:unscaled
xset fp+ /usr/X11/lib/X11/fonts/Type1
xset fp+ /usr/X11/lib/X11/fonts/Type1/sun
xset fp+ /usr/X11/lib/X11/fonts/TrueType
xset fp+ /usr/X11/lib/X11/fonts/F3bitmaps:scaled
xset fp+ /usr/X11/lib/X11/fonts/misc:scaled
xset fp+ /usr/X11/lib/X11/fonts/75dpi:scaled
xset fp+ /usr/X11/lib/X11/fonts/100dpi:scaled
Sean Walmsley
On 10/12/10 20:01, Alan Coopersmith wrote:
Alan Coopersmith wrote:
Since I was asked off list, for future reference, the difference
between font paths in Xsun& Xorg is:
- Xsun will make multiple passes through the list of directories in
the font path, looking first for a bitmap already scaled to the
requested size, then for a scalable font to render at the requested
size, and finally, if nothing else is available, a bitmap font to
mangle to the right size. (This was established in Solaris 9 by the
fix for
http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=4424766 )
- Xorg makes a single pass through the list of directories in the
font path - if the font directory name in the font path has
":unscaled" appended then it only matches fonts in that directory
that exactly match the requested size, if it has ":scaled" then it
will match fonts that need to be scaled to that size.
So the Xsun font path: /usr/openwin/lib/X11/fonts/Type1
/usr/openwin/lib/X11/fonts/Type1/sun
/usr/openwin/lib/X11/fonts/F3bitmaps
/usr/openwin/lib/X11/fonts/Speedo /usr/openwin/lib/X11/fonts/misc
/usr/openwin/lib/X11/fonts/75dpi /usr/openwin/lib/X11/fonts/100dpi
/usr/openwin/lib/X11/fonts/TrueType
would be roughly equivalent to the Xorg font path:
/usr/openwin/lib/X11/fonts/F3bitmaps:unscaled
/usr/openwin/lib/X11/fonts/misc:unscaled
/usr/openwin/lib/X11/fonts/75dpi:unscaled
/usr/openwin/lib/X11/fonts/100dpi:unscaled
/usr/openwin/lib/X11/fonts/Type1 /usr/openwin/lib/X11/fonts/Type1/sun
/usr/openwin/lib/X11/fonts/Speedo
/usr/openwin/lib/X11/fonts/TrueType
/usr/openwin/lib/X11/fonts/F3bitmaps:scaled
/usr/openwin/lib/X11/fonts/misc:scaled
/usr/openwin/lib/X11/fonts/75dpi:scaled
/usr/openwin/lib/X11/fonts/100dpi:scaled
As far as I know Xnewt hasn't changed the Xorg font code at all and
does the same as Xorg, but I've not verified that.
(And of course in later OpenSolaris releases, Solaris 11 Express&
recent Linux distros, there's the added twist that font paths are
now specified as a "catalogue" directory pointing to the actual
directories, so that adding& removing new directories to the font
path as part of package installation or removal is as simple as
adding& removing symlinks i the /etc/X11/fontpath.d directory.)
and:
BTW, after bringing up my S10U9 VirtualBox test system, I can see the
bad Helvetica in Xorg with the default font path, and the better one
with the above font path. Running Xephyr under truss I saw that
with the default font path it was opening & scaling the Type1
Helvetica font (which uses a notably different Type1 font engine in
Xsun vs. Xorg/Xnewt, since only Xsun has Display Postscript built in,
while Xorg uses an open source Type1 rasterizer). The above font
path restores the previous pre-scaled bitmap font usage.
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users