[cairo] Help needed using different fonts

Maarten Bosmans mkbosmans at gmail.com
Mon Aug 29 05:47:03 PDT 2011


2011/8/29 Deepak Kumar JAIN <deepak19dec at gmail.com>:
> Thanks Maarten;
>
> But still some of the fonst dont work and I get the same warning
>
> fonts like Monotype Corsiva. What Should I do for those fonts?

So it was fixed for Times New Roman, but not for Monotype Corsiva?
Weird. What did you do to make times work?
Did you use pango_font_description_set_family?

Please provide some more background info of the code that fails, error
messages and info on the platform you are on.

Maarten

> On Mon, Aug 29, 2011 at 11:11 AM, Maarten Bosmans <mkbosmans at gmail.com>
> wrote:
>>
>>
>> http://blogs.operationaldynamics.com/andrew/software/java-gnome/use-comma-in-font-description
>>
>> 2011/8/29 Deepak Kumar JAIN <deepak19dec at gmail.com>:
>> >
>> > Hello All,
>> >
>> > I am new to Cairo Graphics. I heard about cairoGraphics from a developer
>> > at
>> > SHARP labs.
>> >
>> > I am developing a text manipulation plugin which do several things like
>> > underline, strikeout text, etc.
>> >
>> > But I want to write the text in different fints like Times new Roman,
>> > Arial
>> > , Courier, etc depending on what user prefers. These fonts will be input
>> > by
>> > the user and then on the basis of input by user, I have to write a text
>> > on
>> > the image.  But I am not able to write the text with Times New Roman.
>> > I am using pango_font_description_from_string(FONT) where FONT is
>> > defined as
>> > #define FONT "Arial 27". It works for Arial but when I try to use Times
>> > New
>> > Roman, it says
>> > " Pango Warning" couldn't load font Times ", falling back to "Sans not
>> > Rotaed 27" , expect ugly output.
>> >
>> > Please help me in this regard by suggesting how should I proceed?
>> >
>> > Thanks,
>> >
>> > Deepak JAIN
>> >
>> > --
>> >
>> > Thanks & Regards,
>> > Deepak Kumar JAIN
>> > Internship student,
>> > Orange Labs,France Telecom,
>> > Rennes, France
>> > Contact: +33(0)6 31 15 44 66
>> > www.deepakkumarjain.co.cc
>> >
>> > "I err therefore I am "- Saint Augustine
>> >
>> >
>> >
>> >
>> > --
>> >
>> > Thanks & Regards,
>> > Deepak Kumar JAIN
>> > Internship student,
>> > Orange Labs,France Telecom,
>> > Rennes, France
>> > Contact: +33(0)6 31 15 44 66
>> > www.deepakkumarjain.co.cc
>> >
>> > "I err therefore I am "- Saint Augustine
>> >
>> >
>> > --
>> > cairo mailing list
>> > cairo at cairographics.org
>> > http://lists.cairographics.org/mailman/listinfo/cairo
>> >
>
>
>
> --
>
> Thanks & Regards,
> Deepak Kumar JAIN
> Internship student,
> Orange Labs,France Telecom,
> Rennes, France
> Contact: +33(0)6 31 15 44 66
> www.deepakkumarjain.co.cc
>
> "I err therefore I am "- Saint Augustine
>
>


More information about the cairo mailing list