Update of /cvsroot/q-lang/q/modules/ggi
In directory sc8-pr-cvs1:/tmp/cvs-serv28388
Modified Files:
ggi.q
Log Message:
cosmetic changes in ggi.q comments and font example
Index: ggi.q
===================================================================
RCS file: /cvsroot/q-lang/q/modules/ggi/ggi.q,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ggi.q 19 Dec 2003 21:31:34 -0000 1.3
--- ggi.q 20 Dec 2003 18:09:39 -0000 1.4
***************
*** 337,347 ****
public extern ggi_set_font_metrics VIS NAME;
! /* Set the character size (in pt, can be a floating point value to denote
! fractional sizes) and display resolution (in pixels). Size and resolution
! can be specified either as single values (denoting identical sizes and/or
! resolutions in x and y direction) or as pairs of values (specifying
! different sizes/resolutions for x and y). Moreover, a size value of 0 means
! "same as the other dimension", whereas a resolution value of 0 indicates
! the default value (72 dpi). */
public extern ggi_set_char_size VIS SIZE RES;
--- 337,348 ----
public extern ggi_set_font_metrics VIS NAME;
! /* Set the character size SIZE (in pt = 1/72 of an inch, this can be a
! floating point value to denote fractional sizes) and display resolution RES
! (in dpi = dots per inch). The actual size of the characters on the display
! in pixels will be calculated from these values according to the formula
! PIXEL_SIZE = SIZE*RES/72. SIZE and RES can also be specified as pairs of
! values, to indicate different values for the x and y direction. Moreover, a
! SIZE value of 0 means "same as the other dimension", whereas a RES value of
! 0 indicates the default value (72 dpi). */
public extern ggi_set_char_size VIS SIZE RES;
***************
*** 353,363 ****
public extern ggi_set_antialias VIS FLAG;
! /* Specify an arbitrary affine-linear transformation to be applied before a
! string is rendered on the visual. The font must be scalable for this to
! work. This can be used, e.g., to print rotated or stretched text. The
! transformation is given by a translation vector VECT = (X,Y) and a 2x2
! matrix MATRIX = (XX,XY,YX,YY). E.g., to rotate text by an angle A
! counter-clockwise, you would use a transform matrix of the form (cos A,
! -sin A, sin A, cos A). */
public extern ggi_set_transform VIS VECT MATRIX;
--- 354,363 ----
public extern ggi_set_antialias VIS FLAG;
! /* Specify an arbitrary affine transformation to be applied before a string is
! rendered on the visual. The font must be scalable for this to work. This
! can be used, e.g., to print rotated or stretched text. The transformation
! is given by a translation vector VECT = (X,Y) and a 2x2 matrix MATRIX =
! (XX,XY,YX,YY). E.g., to rotate text by an angle A counter-clockwise, you
! would use a transform matrix of the form (cos A, -sin A, sin A, cos A). */
public extern ggi_set_transform VIS VECT MATRIX;
|