[PATCH 1/2] Add optional Pango text layout support to WINGs

2014-10-11 Thread Khaled Hosny
Currently WINGs renders text using Xft directly which does not support any advanced text layout that is needed for scripts like Arabic or Indic scripts (or even things like automatic ligature support for Latin script). With Pango we also get text fallback for free, so no more square boxes for

[PATCH 1/2] Add optional Pango text layout support to WINGs

2014-10-11 Thread Khaled Hosny
Currently WINGs renders text using Xft directly which does not support any advanced text layout that is needed for scripts like Arabic or Indic scripts (or even things like automatic ligature support for Latin script). With Pango we also get text fallback for free, so no more square boxes for

[PATCH 2/2] Update Pango layout text only if text changes

2014-10-11 Thread Khaled Hosny
This should avoid re-laying out the text unnecessarily. --- WINGs/wfont.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/WINGs/wfont.c b/WINGs/wfont.c index 5416a43..32bb613 100644 --- a/WINGs/wfont.c +++ b/WINGs/wfont.c @@ -293,7 +293,8 @@ int WMWidthOfString(WMFont