Re: [cairo] Pango font thickness



Hi,

Thank you for sending sample picture. Oops, I ought to have
find that your sample code using "stroke" operator of cairo.
I think the issue you report is not font selection -
the heavy weight you got is because the path of the glyph
outline is drawn by the thick line. If you generate a PDF
by PdfSurface, the PDF has no embedded font, the text is
drawn as a graphics.

I'm unfamiliar with APIs of cairomm, but I guess there might
be some "show" like operator that renders the font strictly.
Please search for it, or tune the width of line to thin.

Regards,
mpsuzuki

On Sat, 6 Feb 2010 17:12:44 +0100
Edder <edder tkwsping nl> wrote:

>On Sat, Feb 6, 2010 at 4:43 PM,  <mpsuzuki hiroshima-u ac jp> wrote:
>> Hi,
>>
>> Although I've never played with cairomm/pangomm, but
>> your report sounds interesting. I think the handling
>> of weight info in Pango is backend specific; please
>> find pangoatsui-fontmap.c, pangofc-fontmap.c, pangowin32-fontmap.c,
>> and pangox-fontmap.c have their own details. So, which
>> platform you're working with? If you test your progam
>> on different platform, the tendency selecting too heavy
>> font is same?
>>
>
>I work on linux and am afraid that I don't have another platform setup
>to test this on :(. I did try it on multiple machines though and they
>all show the same results. I attached the file created by the test
>code I showed before.
>
>Cheers, Edwin
>


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