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/vcl | |
parent | 4767bbb00dc9eacce6f6d60fd4c55107333cee2d (diff) |
use LanguageTag
Change-Id: I7277f40dcba1e079ede32a01f526342a5cde435b
Diffstat (limited to 'canvas/source/vcl')
-rw-r--r-- | canvas/source/vcl/canvasfont.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/canvas/source/vcl/canvasfont.cxx b/canvas/source/vcl/canvasfont.cxx index 49811824f685..12fe3094217c 100644 --- a/canvas/source/vcl/canvasfont.cxx +++ b/canvas/source/vcl/canvasfont.cxx @@ -22,7 +22,7 @@ #include <rtl/math.hxx> #include <basegfx/numeric/ftools.hxx> -#include <i18npool/mslangid.hxx> +#include <i18npool/languagetag.hxx> #include <vcl/metric.hxx> #include <com/sun/star/rendering/PanoseProportion.hpp> @@ -59,7 +59,7 @@ namespace vclcanvas 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) ) |