Alan Coopersmith wrote:
> Also, since there is no -adobe-helvetica... provided in bitmap format with
> 72-72 resolution, I wonder if it's scaling the 75-75 bitmaps or the Type1
> scalable version of the Adobe font (I hope it's the latter, but you have to
> set the Xnewt/Xorg font path differently than Xsun to control that).

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.)

-- 
        -Alan Coopersmith-        [email protected]
         Oracle Solaris Platform Engineering: X Window System

_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to