diff options
author | Akash Jain <akash96j@gmail.com> | 2016-07-06 10:35:24 +0530 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2016-10-18 20:41:29 +0200 |
commit | 828b8cf4d26c4d72c1f2146fd7a5bbb3b0465718 (patch) | |
tree | a6e78805971961c885d90164471da5ff1a9695e3 /vcl/unx/generic/gdi/cairotextrender.cxx | |
parent | GSoC: Modify DrawServerFontLayout and add DrawSalLayout (diff) | |
download | core-828b8cf4d26c4d72c1f2146fd7a5bbb3b0465718.tar.gz core-828b8cf4d26c4d72c1f2146fd7a5bbb3b0465718.zip |
GSoC: Integrate new CommonSalLayout in unx/ code
Change-Id: I991cb5cbd2adad4f4c9f62f807990b9fde2a5133
Diffstat (limited to 'vcl/unx/generic/gdi/cairotextrender.cxx')
-rw-r--r-- | vcl/unx/generic/gdi/cairotextrender.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vcl/unx/generic/gdi/cairotextrender.cxx b/vcl/unx/generic/gdi/cairotextrender.cxx index 372cd4d135ae..01f82db0019d 100644 --- a/vcl/unx/generic/gdi/cairotextrender.cxx +++ b/vcl/unx/generic/gdi/cairotextrender.cxx @@ -42,6 +42,7 @@ #include <cairo.h> #include <cairo-ft.h> +#include "CommonSalLayout.hxx" namespace { @@ -540,7 +541,10 @@ SalLayout* CairoTextRender::GetTextLayout( ImplLayoutArgs& rArgs, int nFallbackL } else #endif - pLayout = new ServerFontLayout( *mpServerFont[ nFallbackLevel ] ); + if (getenv("SAL_USE_COMMON_LAYOUT")) + pLayout = new CommonSalLayout(*mpServerFont[nFallbackLevel]); + else + pLayout = new ServerFontLayout(*mpServerFont[nFallbackLevel]); } return pLayout; |