Re: Rotating X Fonts?

2008-10-30 Thread Juliusz Chroboczek
 1. Is there a way to know at run-time whether or not an X-server will  
 actually be able to honor the rotated font request?

Not officially.

However, you may have a look at the font property ``RASTERIZER_NAME''.  If
it says ``FreeType'', ``X Consortium Type 1 Rasterizer'' or ``X Consortium
Speedo Rasterizer'', it will probably work.  If it's something else, all
bets are off.

 2. Is there any documentation/standard for the use of rotated fonts,  
 e.g., the name of the rotated font above is mostly a mystery between  
 the []?

The XLFD spec, version 1.5, Section 4.

http://www.x.org/docs/XLFD/xlfd.pdf

 3. I suspect the issue might be a discrepancy between the installed  
 fonts on the two X servers.

No, it's more probably a discrepancy between the font backends being used.
I suspect that Hummingbird uses a rasteriser called the ``X Consortium Bit
Scaler'', which has been disabled in X.Org.

Core X11 fonts are deprecated in X.Org.  I strongly recommend that you
switch to Xft, which doesn't have any of these issues.

Juliusz
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


Rotating X Fonts?

2008-10-28 Thread Carl Schumann
Hi,

I am struggling with an application, written by another, that attempts  
to rotate fonts for use on the Y label of a plot.   It uses the  
following font names:
-adobe-helvetica-medium-r-normal--18-180-75-75-p-98-iso8859-1  (the  
non-rotated version)
-adobe-helvetica-medium-r-normal--0-[+0.0+18.0~18.0+0.0]-75-75-p-0- 
iso8859-1 (the rotated 90 degree version)
In my environment this rotation is not uniformly successful.   It  
works on MS Windows machines running Hummingbird Exceed, but fails for  
Linux machines using Xorg.Failure here means the font is displayed  
just not rotated.  Xorg is able to rotate a font named utopia, so this  
is somewhat specific to the font involved.  So I have a few questions  
whose answer would help me progress please:
1. Is there a way to know at run-time whether or not an X-server will  
actually be able to honor the rotated font request?
2. Is there any documentation/standard for the use of rotated fonts,  
e.g., the name of the rotated font above is mostly a mystery between  
the []?
3. I suspect the issue might be a discrepancy between the installed  
fonts on the two X servers.  Suggestions for how to diagnose and fix  
any such discrepancy?
Thanks for your time.

Sincerely,
Carl Schumann

___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


Re: Rotating X Fonts?

2008-10-28 Thread Alan Coopersmith
Carl Schumann wrote:
 2. Is there any documentation/standard for the use of rotated fonts,  
 e.g., the name of the rotated font above is mostly a mystery between  
 the []?

They were specified in X11R6, but never really used much since they
specified rotating each individual character, but not the line of
text, so weren't very useful.   (i.e, asking it to rotate   would
result in ^ V being drawn and not the more commonly expected
^
V
.)

The specification of what you can put between the [] is in the XLFD
(X Logical Font Description) specs, along with the details of each
of the 13 other fields between the dashes.   A PDF version is posted
at http://www.xfree86.org/current/xlfd.pdf - the section you are looking
for is Matrix Transformations, starting on the page numbered 24
(page 26 of the PDF).

-- 
-Alan Coopersmith-   [EMAIL PROTECTED]
 Sun Microsystems, Inc. - X Window System Engineering

___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg