[cairo] Want to stretch my fonts

Kayven Riese kayvey at gmail.com
Tue Jul 27 23:09:04 PDT 2010


Hi, I have attached four files (oops five--see below) so that if somebody
has a UNIX command line hopefully you just save them and do "make stub" and
you can run my code. For compatibility here is my CentOS uname:
[root at localhost ~]# uname -a
Linux localhost 2.6.18-194.8.1.el5 #1 SMP Thu Jul 1 19:04:48 EDT 2010 x86_64
x86_64 x86_64 GNU/Linux
[root at localhost ~]#

My goal is to create a "cellgam.png" but to have more control over the
font.  I want to stretch it vertically.  In the example, I think I ran the
program with the command

./stub 2 2 3 3

which means that 20% of the proteins are nuclear.  I want the word "Nuclear"
to have an extent that represents 20% of the vertical height of the diagram,
but I want it to still be contained in my "cell" the rounded rectangle I
have drawn.  The rectangle is intended to have a vertical extent propotional
to the first three arguments.

All that is a ball of wax I can handle.  The only thing I am asking is how
do I control what is happening to my text to transform it vertically within
a box that I chose.  I got the idea for what I am doing from the fifth file
I just attached, "bp_font.jpeg"  I want to be able to stretch the word
"Nuclear" so it is taller, but control the width to be narrower to still fit
inside my cell.

Thanks in advance for any help.

-- 

*----------------------------------------------------------*
  Kayven Riese, BSCS,
                      MS  (Physiology and Biophysics)
  (415) 902 5513 cellular
  http://kayve.net
  Webmaster http://ChessYoga.org
*----------------------------------------------------------*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20100727/f1dd2a3a/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cellgram.c
Type: text/x-csrc
Size: 4217 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20100727/f1dd2a3a/attachment-0002.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cellgram.png
Type: image/png
Size: 38526 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20100727/f1dd2a3a/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 1619 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20100727/f1dd2a3a/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stub.c
Type: text/x-csrc
Size: 576 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20100727/f1dd2a3a/attachment-0003.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bp_font.jpeg
Type: image/jpeg
Size: 8069 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20100727/f1dd2a3a/attachment-0001.jpeg>


More information about the cairo mailing list