gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] gzz/doc/pegboard/1008 PEG_1008.rst


From: Tuomas J. Lukka
Subject: [Gzz-commits] gzz/doc/pegboard/1008 PEG_1008.rst
Date: Sun, 06 Oct 2002 11:54:38 -0400

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Tuomas J. Lukka <address@hidden>        02/10/06 11:54:38

Modified files:
        doc/pegboard/1008: PEG_1008.rst 

Log message:
        Propose alternative

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/doc/pegboard/1008/PEG_1008.rst.diff?tr1=1.7&tr2=1.8&r1=text&r2=text

Patches:
Index: gzz/doc/pegboard/1008/PEG_1008.rst
diff -c gzz/doc/pegboard/1008/PEG_1008.rst:1.7 
gzz/doc/pegboard/1008/PEG_1008.rst:1.8
*** gzz/doc/pegboard/1008/PEG_1008.rst:1.7      Sun Oct  6 11:24:39 2002
--- gzz/doc/pegboard/1008/PEG_1008.rst  Sun Oct  6 11:54:38 2002
***************
*** 4,11 ****
  =============================================================
  
  :Authors:  Tuomas Lukka, Benja Fallenstein
! :Date:     $Date: 2002/10/06 15:24:39 $
! :Revision: $Revision: 1.7 $
  :Status:   Incomplete
  
  
--- 4,11 ----
  =============================================================
  
  :Authors:  Tuomas Lukka, Benja Fallenstein
! :Date:     $Date: 2002/10/06 15:54:38 $
! :Revision: $Revision: 1.8 $
  :Status:   Incomplete
  
  
***************
*** 27,59 ****
  The height needs to be passed in a coordsys to enable interpolation
  (very desirable). Also, the origin of the text, and the direction.
  
! The solution is to pass these three (origin, direction, height)
! in one coordinate system and the "aspect ratio" in another.
! 
! Thus:
! 
! Two coordinate systems are passed. The second will correctly default to zero.
! The first coordinate system determines the height of the text and its location
! on the screen. The second coordinate system determines the aspect ratio and 
the 
! direction in which the text continues.
! 
!     (Benja:) I don't like this... I think the first coordinate system
!     should determine the aspect ratio (because changing the aspect ratio
!     should be handled through transformations). What's the problem anyway?
!     Let's say we want a strip of text with height 10. We create a scaled
!     coordsys, x scaled by 10 and y scaled by 10. If we want to have
!     a different aspect ratio, we set x to something different (or we create
!     a sub-cs that has x scaled but not y, and put the text into that).
!     
!     Also, for AWT, we need a method to look up the best point size for
!     a given height, in order to implement this right: that is part of
!     implementing this peg. (Will need a table-driven approach, most likely.)
!     
!     With these changes/additions, I'm for accepting this PEG.
! 
! Algorithm::
! 
!     a = cs1(0,0); b = cs1(0,1);  # Convert left edge of text bbox
!     topleft = cs2^-1(a); bottomleft = cs2^-1(b);
!     textdir = (topleft - bottomleft).clockwise90()
! 
--- 27,33 ----
  The height needs to be passed in a coordsys to enable interpolation
  (very desirable). Also, the origin of the text, and the direction.
  
! The solution is to pass nothing about what should be done to the width
! of the string, but simply the unit square of the font. I.e.: the
! font will have its normal aspect ratio if the distances
! (0,1)..(0,0) and (0,1)..(1,1) are the same.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]