How to calculate the font size?

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.

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