but that takes only cr as an argument.. so it is going to scale my
entire canvas right? I need to learn to make my letters on a different
canvas and combine the two canvases or something, don't I?<br><br><div class="gmail_quote">On Tue, Jul 27, 2010 at 11:50 PM, Kayven Riese <span dir="ltr"><<a href="mailto:kayvey@gmail.com">kayvey@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">but that takes only cr as an argument.. so it is going to scale my entire canvas right? I need to learn to make my letters on a different canvas and combine the two canvases or something, don't I?<div>
<div></div><div class="h5"><br><br><div class="gmail_quote">
On Tue, Jul 27, 2010 at 11:42 PM, Andrea Canciani <span dir="ltr"><<a href="mailto:ranma42@gmail.com" target="_blank">ranma42@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>On Wed, Jul 28, 2010 at 8:09 AM, Kayven Riese <<a href="mailto:kayvey@gmail.com" target="_blank">kayvey@gmail.com</a>> wrote:<br>
> Hi, I have attached four files (oops five--see below) so that if somebody<br>
> has a UNIX command line hopefully you just save them and do "make stub" and<br>
> you can run my code. For compatibility here is my CentOS uname:<br>
> [root@localhost ~]# uname -a<br>
> Linux localhost 2.6.18-194.8.1.el5 #1 SMP Thu Jul 1 19:04:48 EDT 2010 x86_64<br>
> x86_64 x86_64 GNU/Linux<br>
> [root@localhost ~]#<br>
><br>
> My goal is to create a "cellgam.png" but to have more control over the<br>
> font. I want to stretch it vertically. In the example, I think I ran the<br>
> program with the command<br>
><br>
> ./stub 2 2 3 3<br>
><br>
> which means that 20% of the proteins are nuclear. I want the word "Nuclear"<br>
> to have an extent that represents 20% of the vertical height of the diagram,<br>
> but I want it to still be contained in my "cell" the rounded rectangle I<br>
> have drawn. The rectangle is intended to have a vertical extent propotional<br>
> to the first three arguments.<br>
><br>
> All that is a ball of wax I can handle. The only thing I am asking is how<br>
> do I control what is happening to my text to transform it vertically within<br>
> a box that I chose. I got the idea for what I am doing from the fifth file<br>
> I just attached, "bp_font.jpeg" I want to be able to stretch the word<br>
> "Nuclear" so it is taller, but control the width to be narrower to still fit<br>
> inside my cell.<br>
</div>You can't do that just by changing the font size. You should use<br>
cairo_scale with<br>
appropriate arguments (see<br>
<a href="http://cairographics.org/manual/cairo-transformations.html" target="_blank">http://cairographics.org/manual/cairo-transformations.html</a> )<br>
Hope this helps<br>
<font color="#888888">Andrea<br>
</font></blockquote></div><br><br clear="all"><br></div></div><div><div></div><div class="h5">-- <br><br>*----------------------------------------------------------*<br> Kayven Riese, BSCS, <br> MS (Physiology and Biophysics)<br>
(415) 902 5513 cellular<br>
<a href="http://kayve.net" target="_blank">http://kayve.net</a><br> Webmaster <a href="http://ChessYoga.org" target="_blank">http://ChessYoga.org</a><br>*----------------------------------------------------------*<br>
<br><br><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><br>*----------------------------------------------------------*<br> Kayven Riese, BSCS, <br> MS (Physiology and Biophysics)<br> (415) 902 5513 cellular<br>
<a href="http://kayve.net">http://kayve.net</a><br> Webmaster <a href="http://ChessYoga.org">http://ChessYoga.org</a><br>*----------------------------------------------------------*<br><br><br><br>