On 11 February 2011 19:37, <ikorot@xxxxxxxxxxxxx> wrote: > Hi, > > > -----Original Message----- >>From: Lex Trotman <elextr@xxxxxxxxx> >>Sent: Feb 11, 2011 12:12 AM >>To: gtk-list <gtk-list@xxxxxxxxx> >>Subject: Re: How to make a strikethrough font? >> >>> It is called a "dialog" in MSVC resource editor. >> >>I assume that means your platform is windows?? > > No, you assumption is wrong. I'm trying to do that on Linux. You said on your first post that you were a newcomer to GTK, frankly if so you shouldn't be worrying about using low level libraries like pango, you are just making your life hard!!! Use the GTK+ widgets, see http://library.gnome.org/devel/gtk/stable/ In over 10 years I've only ever needed to use such a low level library once, and then it was a mistake :-) > >> >>> >>>> >>>>> >>>>>> >> >>>>How? >>> >>> What do you mean? I'm going to use a DC to put the text on. >> >>Thats what I've been asking. >> >>If you are using Pango for your text, then you will use layouts to set >>out the text, set attributes like strikethrough and set the font >>description. Then use something like pango_win32_render_layout() to >>draw to the dc. >> >>See http://library.gnome.org/devel/pango/stable/pango-Layout-Objects.html > > OK, and how do I connect layout with pango font? If you really want to do this did you read the above link? see pango_layout_set_font_description(). Again I say look at the basic GTK+ library, it will do nearly everything you want much easier than playing around with Pango rendering. Cheers Lex > > Thank you. > >> >>Cheers >>Lex >> >>> Or just type some text in a text control. >>> >>> Thank you. >>> >> >>PS Please keep your replies on the list, not to me >>_______________________________________________ >>gtk-list mailing list >>gtk-list@xxxxxxxxx >>http://mail.gnome.org/mailman/listinfo/gtk-list > > _______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list