diff options
author | Eike Rathke <erack@redhat.com> | 2012-11-17 00:11:48 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2012-11-17 00:11:52 +0100 |
commit | 8efe5ff8a0fcaa01cafbb156e9b20dc34c4c97d4 (patch) | |
tree | 630b9a3a869abc0d0e990d0236fdb28d152df77e /canvas/source/cairo/cairo_canvasfont.cxx | |
parent | 4767bbb00dc9eacce6f6d60fd4c55107333cee2d (diff) |
use LanguageTag
Change-Id: I7277f40dcba1e079ede32a01f526342a5cde435b
Diffstat (limited to 'canvas/source/cairo/cairo_canvasfont.cxx')
-rw-r--r-- | canvas/source/cairo/cairo_canvasfont.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/canvas/source/cairo/cairo_canvasfont.cxx b/canvas/source/cairo/cairo_canvasfont.cxx index 44be8b30f5a9..0e8e58fce1df 100644 --- a/canvas/source/cairo/cairo_canvasfont.cxx +++ b/canvas/source/cairo/cairo_canvasfont.cxx @@ -25,7 +25,7 @@ #include <basegfx/numeric/ftools.hxx> #include <vcl/metric.hxx> -#include <i18npool/mslangid.hxx> +#include <i18npool/languagetag.hxx> #include "cairo_canvasfont.hxx" #include "cairo_textlayout.hxx" @@ -57,7 +57,7 @@ namespace cairocanvas rFontRequest.FontDescription.FontDescription.Proportion == rendering::PanoseProportion::MONO_SPACED ? PITCH_FIXED : PITCH_VARIABLE); - maFont->SetLanguage(MsLangId::convertLocaleToLanguage(rFontRequest.Locale)); + maFont->SetLanguage( LanguageTag( rFontRequest.Locale).getLanguageType( false)); // adjust to stretched/shrinked font if( !::rtl::math::approxEqual( rFontMatrix.m00, rFontMatrix.m11) ) |