Re: preventing wrapping on certain words only
- From: Behdad Esfahbod <behdad behdad org>
- To: Ellié Computing Open Source Program <opensource elliecomputing com>
- Cc: gtk-i18n-list gnome org
- Subject: Re: preventing wrapping on certain words only
- Date: Fri, 06 May 2011 16:01:11 -0400
On 05/06/11 10:07, Ellié Computing Open Source Program wrote:
> Hello,
>
> 1. I’ve been investigating the Pango API, but could not find a way to prevent
> wrapping for specific portions of text. I saw the global wrapping option
> WRAP_WORD / WRAP_CHAR / WRAP_WORD_CHAR using pango_layout_set_wrap ( ).
>
> How should I do this?
> The idea behind this is to be sure that a text such as “(...)“ (could be as
> well “/* ... */”) does not get wrapped.
Not quite possible right now.
> 2. Another question, how would I add a place holder for an image so that I
> could do something like: hello <img width=50 height=10>! in logic and
> determine where the image should be?
> Can I obtain that from Pango or should I use something else? more powerful on
> top of it?
Checkout pango/examples/cairoshape.c
b
> Best regards
> Armel
>
>
>
>
> _______________________________________________
> gtk-i18n-list mailing list
> gtk-i18n-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-i18n-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]