From a1eb9ea9ea770ef1634d4373351ed7bf4617f66d Mon Sep 17 00:00:00 2001 From: hdu <duerr@sun.com> Date: Tue, 5 Jan 2010 17:21:05 +0100 Subject: #i88303# dynamically match the system's font options (thanks cmc!) --- vcl/unx/source/gdi/salgdi3.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vcl/unx/source/gdi') diff --git a/vcl/unx/source/gdi/salgdi3.cxx b/vcl/unx/source/gdi/salgdi3.cxx index 50913fd99f71..c161927a478d 100644 --- a/vcl/unx/source/gdi/salgdi3.cxx +++ b/vcl/unx/source/gdi/salgdi3.cxx @@ -983,6 +983,9 @@ void X11SalGraphics::DrawCairoAAFontString( const ServerFontLayout& rLayout ) cairo_t *cr = rCairo.create(surface); rCairo.surface_destroy(surface); + if (const void *pOptions = Application::GetSettings().GetStyleSettings().GetCairoFontOptions()) + rCairo.set_font_options( cr, pOptions); + if( pClipRegion_ && !XEmptyRegion( pClipRegion_ ) ) { for (long i = 0; i < pClipRegion_->numRects; ++i) -- cgit