Re: Text layout in a GtkLabel
- From: "Milosz Derezynski" <internalerror gmail com>
- To: "Ian Puleston" <ian underpressuredivers com>
- Cc: gtk-list gnome org
- Subject: Re: Text layout in a GtkLabel
- Date: Thu, 30 Oct 2008 05:26:36 +0100
I meant "in this context", sorry.
On Thu, Oct 30, 2008 at 5:25 AM, Milosz Derezynski
<internalerror gmail com> wrote:
> What is the difference between "character formatting" and "layout
> formatting" here?
>
> On Thu, Oct 30, 2008 at 5:02 AM, Ian Puleston
> <ian underpressuredivers com> wrote:
>>> -----Original Message-----
>>> From: Milosz Derezynski [mailto:internalerror gmail com]
>>> Sent: Wednesday, October 29, 2008 5:24 PM
>>>
>>> You can use gtk_label_set_markup() and set the internal Layout of the
>>> Label using Pango markup, or use gtk_label_get_layout() (it's safe to
>>> call this function without realizing the widget first); that way
>>> actually have the Label's/a PangoLayout and can modify it as you were
>>> used to. There's also gtk_label_get/set_attributes() by which you
>>> don't need to get the actual Layout but that runs down to the same
>>> thing.
>>
>> Thanks, I'll look into using gtk_label_get_layout().
>>
>> But on the suggestion to use gtk_label_set_markup, that's actually what I meant below when I said "with Pango meta formatting" (sorry, was working on something else and got the terminology confused, I meant markup formatting). From what I see of the Pango Markup language it doesn't seem to provide for formatting the layout, just for character formatting, or am I missing something?
>>
>> Ian
>>
>>> 2008/10/30 Ian Puleston <ian underpressuredivers com>:
>>
>>> > The GtkLabel supports setting a Pango attributes list or text with
>>> Pango
>>> > meta formatting, but that is all character formatting. I think I
>>> could
>>> > achieve what I want using a Pango layout, but I can't see any way to
>>> use
>>> > that with a GtkLabel.
>>
>>
>>
>
>
>
> --
> Please note that according to the German law on data retention,
> information on every electronic information exchange with me is
> retained for a period of six months.
> [Bitte beachten Sie, dass dem Gesetz zur Vorratsdatenspeicherung zufolge
> jeder elektronische Kontakt mit mir sechs Monate lang gespeichert wird.]
>
--
Please note that according to the German law on data retention,
information on every electronic information exchange with me is
retained for a period of six months.
[Bitte beachten Sie, dass dem Gesetz zur Vorratsdatenspeicherung zufolge
jeder elektronische Kontakt mit mir sechs Monate lang gespeichert wird.]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]