Writing an API that fixes the number of Rows of PangoLayout
- From: Parth Kanungo <kanungoparth gmail com>
- To: gtk-i18n-list gnome org, Behdad Esfahbod <behdad behdad org>
- Subject: Writing an API that fixes the number of Rows of PangoLayout
- Date: Mon, 15 Apr 2013 17:20:54 +0530
Hi,
In my application, I have assigned various parameters required by the PangoLayout, including the text. Now, I have to construct an API that can limit the number of maximum lines in this layout. Hence, if I say that maxLines = 3, only 3 lines should be present in the PangoLayout.
I tried to do that by adjusting the height. But, it seems that the number of lines ( pango_layout_get_line_count() ) depends on the text set through pango_layout_set_text() and not on pango_layout_set_height().
Can you provide some pointers on how such an API be written?
Tell me, if I am wrong somewhere.
Thanks and regards,
--
Parth
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]