Re: How to calculate the font size?



Thank you. This did work. But it confused me even more.
For example, with cairo, I scaled, then set the AttrSize as 1, it
looked pretty cool. But then I layoutGetExtents to see the size of the
layout, it gave me a data seemed in pixel (or point? I am not sure.)
unit. May I get the size in "scaled" unit?

On Fri, Apr 16, 2010 at 12:15 AM, Behdad Esfahbod <behdad behdad org> wrote:
> On 04/14/2010 09:57 PM, Magicloud Magiclouds wrote:
>> Hi, could someone help me? Pango's maillist seems inactive. Thank you.
>>
>> On Wed, Apr 14, 2010 at 3:31 PM, Magicloud Magiclouds
>> <magicloud magiclouds gmail com> wrote:
>>> Hi, I am not quite familiar with the font thing. Now I have a simple
>>> request, I do not know how to meet it:
>>> Say I have a background (i.e. a cairo surface) which size was not
>>> certain when the function was made, I have to write a "0" at (1%, 3%)
>>> with the size of 5%, all % means the size of the actual background.
>>> How to do it? Thanks.
>
> Calculate the 5%, use it as your font size?  Make sure you set the absolute
> font size.
>
> behdad
>



-- 
竹密岂妨流水过
山高哪阻野云飞


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