Re: Pango question about font

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

 



Hi, again,

On Sun, Aug 30, 2015 at 11:44 PM, Igor Korot <ikorot01@xxxxxxxxx> wrote:
> Hi, ALL,
> Hopefully there is a person who is familiar with Pango...
>
> The documentation for PangoUnderline -> PANGO_UNDERLINE_ERROR states:
>
> [quote]
> a wavy underline should be drawn below. This underline is typically
> used to indicate an error such as a possilble mispelling; in some
> cases a contrasting color may automatically be used. This type of
> underlining is available since Pango 1.4.
> [/quote]
>
> 2 questions:
> 1. "in some cases a contrasting color may automatically be used".
> When? I.e. what are those cases?
> 2. Can I set the color used for the wavy underline? As an example on
> Windows when there is a misspelled word the red color is used and when
> there is a syntactical error - blue.

I kind of found an answer to my second question.
Is this line of code OK:

[code]
tag = gtk_text_buffer_create_tag( text_buffer, buf, "underline-color",
(128, 128, 128 ), NULL );
[/code]

Thank you.

>
> Thank you.
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list



[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux