Re: pangocairo on Mac: transformation matrix and fontsize



Hi,

What version of Pango are you using?

b

On 12-12-04 08:04 AM, Jun T. wrote:
> I'm quite new to pango/cairo, and don't know where is the appropriate place to ask
> a question like this; if there are more suitable places, please let me know.
> 
> Please compile test.c (in the attached tar.gz file) and run it as
> ./a.out 1 1 1-1.png
> ./a.out 2 1 2-1.png
> ./a.out 2 2 2-2.png
> ./a.out 2 4 2-4.png
> The four png files I got on my Mac are included in the tar.gz.
> 
> In function draw(), I set the transformation matrix to (1/scale)*unit_matrix,
> draw a rectangle, and draw a text with fontsize=24*fontscale.
> The three args to a.out is 'scale fontscale fname'.
> In 2-1.png, scale is 2 and fontscale is 1,
> and I expect both rectangle and text are drawn in half the size of 1-1.png,
> which is I get on my Linux box.
> 
> But on my Mac (OSX 10.8, pango-1.32.3/cairo-1.12.8),
> the text in 2-1.png is in 1/4 size of 1-1.png.
> In 2-2.png, the text is in half size, 
> and in 2-4.png it is in the same size as 1-1.png (but on Linux it is
> twice as large as 1-1.png).
> 
> Am I using pango/cairo in a correct way?
> 
> If there is anyone using pango/cairo on Mac,
> please check whether you also have this problem or not.
> 
> PS
> gnuplot uses scale=fontscale=20 to get oversampling effect
> (as far as I can understand from the gnuplot source code),
> but due to the above problem texts are too small to see on my Macs.
> 
> 
> 
> _______________________________________________
> gtk-i18n-list mailing list
> gtk-i18n-list gnome org
> https://mail.gnome.org/mailman/listinfo/gtk-i18n-list
> 

-- 
behdad
http://behdad.org/


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