Re: Re: ellipsis per layout
- From: Parth Kanungo <parth k samsung com>
- To: Behdad Esfahbod <behdad behdad org>, "gtk-i18n-list gnome org" <gtk-i18n-list gnome org>
- Subject: Re: Re: ellipsis per layout
- Date: Mon, 20 Jan 2014 15:56:18 +0000 (GMT)
Title: Samsung Enterprise Portal mySingle
Hi Behdad,
I am kinda stuck here.
Can you tell me what exactly are the last 6 variables in the _PangoGlyphItemIter struct ?
struct
_PangoGlyphItemIter
{
PangoGlyphItem *glyph_item;
const gchar *text;
int start_glyph;
int start_index;
int start_char;
int end_glyph;
int end_index;
int end_char;
};
I guess, start_index & end_index are the line indices w.r.t layout.
Thanks and regards,
Parth Kanungo
------- Original Message -------
Sender : Behdad Esfahbod<behdad behdad org>
Date : Jan 02, 2014 11:20 (GMT+05:30)
Title : Re: ellipsis per layout
On 14-01-02 01:36 PM, Parth Kanungo wrote:
> Hello,
>
>
>
> I was trying to add ellipsis to a text containing '\n'.
>
> I noticed that pango implements ellipsis per paragraph, but not ellipsis per
> layout.
>
> Can anyone throw some light on how to go about implementing it ?
If you can patch PangoLayout to implement that, I will take it upstream.
>
> I ran the following test sample, where I expect an ellipsis after "an".
>
> text = "This is sample text to reproduce an\n\n issue related to ellipsis"
>
> font_size = 20, layout.width = 150, layout.height = 60
>
>
>
> Thanks and regards,-
>
> Parth Kanungo
>
>
>
> _______________________________________________
> gtk-i18n-list mailing list
> gtk-i18n-list gnome org
> https://mail.gnome.org/mailman/listinfo/gtk-i18n-list
>
--
behdad
http://behdad.org/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]