mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 12:58:08 +01:00
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 characters not supported in the current font (unless no font on the system supports the specified character, of course). This patch introduces support for using Pango to render the text (though its Xft backed), to avoid forcing the additional dependency to everyone it is made off by default. Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
32 lines
518 B
Bash
32 lines
518 B
Bash
#!/bin/sh
|
|
|
|
WCFLAGS="${inc_search_path}"
|
|
WLFLAGS="${lib_search_path}"
|
|
WLIBS="-lWINGs -lWUtil -lwraster ${GFXLIBS} ${XFTLIBS} ${XLIBS} -lm ${INTLIBS} ${PANGOLIBS}"
|
|
|
|
usage="Usage: get-wings-flags [--cflags] [--ldflags] [--libs]"
|
|
|
|
if test $# -eq 0; then
|
|
echo "${usage}" 1>&2
|
|
exit 1
|
|
fi
|
|
|
|
while test $# -gt 0; do
|
|
case $1 in
|
|
--cflags)
|
|
echo $WCFLAGS
|
|
;;
|
|
--ldflags|--lflags)
|
|
echo $WLFLAGS
|
|
;;
|
|
--libs)
|
|
echo $WLIBS
|
|
;;
|
|
*)
|
|
echo "${usage}" 1>&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
shift
|
|
done
|