diff options
Diffstat (limited to 'canvas')
-rw-r--r-- | canvas/source/cairo/cairo_canvasfont.cxx | 4 | ||||
-rw-r--r-- | canvas/source/vcl/canvasfont.cxx | 4 |
2 files changed, 4 insertions, 4 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) ) 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) ) |