[cairo] Want to stretch my fonts

Kayven Riese kayvey at gmail.com
Wed Jul 28 00:20:46 PDT 2010


 `pkg-config --cflags --libs cairo` -o stub -lrt stub.o cellgram.o
^[[kayve at localhost cellgram]$ ./stub 2 2 2 4
 nuclear is   2.00
 cytosolic is   2.00
 membrane is   2.00
 extracelluar is   4.00
in_cell is   0.60
Segmentation fault
[kayve at localhost cellgram]$


On Wed, Jul 28, 2010 at 12:20 AM, Kayven Riese <kayvey at gmail.com> wrote:

> Is that why I am getting a seg fault?
>
>      /**********************************
>  80          * Nuclear Proteins
>  81          **********************************/
>  82         cairo_set_font_size (cr, (1400.0*nuclear)/total);
>  83         cairo_set_source_rgb (cr, 0.4, 0.2, 0.6);
>  84         cairo_move_to (cr, BORDER+CELL_DIAM/2-3600*nuclear/total,
> TOP_BORDER+1000*nuclear    /total);
>  85         cairo_get_font_matrix(cr,fatrix);
>  86         cairo_matrix_init_scale(fatrix,0.8,0);
>  87         cairo_set_font_matrix(cr,fatrix);
>  88         cairo_show_text (cr, "N");
>  89         cairo_set_font_size (cr, (1040.0*nuclear)/total);
>  90         cairo_show_text (cr, "ucLea");/**/
>  91         cairo_set_font_size (cr, (1400.0*nuclear)/total);
>  92         cairo_show_text (cr, "R");/**/
>  93
>
> Do the scale factors multiply or add?  I am supply sy = 0.. maybe I want sy
> = 1
>
>
>
> On Wed, Jul 28, 2010 at 12:16 AM, donn <donn.ingle at gmail.com> wrote:
>
>> On 28/07/2010 08:56, Kayven Riese wrote:
>>
>>> I need to learn to make my letters on a different
>>> canvas and combine the two canvases or something, don't I?
>>>
>> Have a look at context.save() and context.restore() -- you can have a
>> different matrix within those two and not affect the one outside.
>>
>>
>> \d
>>
>>
>> --
>> cairo mailing list
>> cairo at cairographics.org
>> http://lists.cairographics.org/mailman/listinfo/cairo
>>
>
>
>
> --
>
> *----------------------------------------------------------*
>   Kayven Riese, BSCS,
>                       MS  (Physiology and Biophysics)
>   (415) 902 5513 cellular
>   http://kayve.net
>   Webmaster http://ChessYoga.org
> *----------------------------------------------------------*
>
>
>
>


-- 

*----------------------------------------------------------*
  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/20100728/83c34ef2/attachment.htm>


More information about the cairo mailing list