Kaydet (Commit) 8efe5ff8 authored tarafından Eike Rathke's avatar Eike Rathke

use LanguageTag

Change-Id: I7277f40dcba1e079ede32a01f526342a5cde435b
üst 4767bbb0
......@@ -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) )
......
......@@ -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) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment