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

use LanguageTag

Change-Id: Ic81a3f3ffd00431ddc8082a210dacaa77ce862f4
üst 9de9c430
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
#include <canvas/debug.hxx> #include <canvas/debug.hxx>
#include "dx_impltools.hxx" #include "dx_impltools.hxx"
#include <vcl/sysdata.hxx> #include <vcl/sysdata.hxx>
#include <i18npool/mslangid.hxx> #include <i18npool/lanuagetag.hxx>
#include "dx_textlayout_drawhelper.hxx" #include "dx_textlayout_drawhelper.hxx"
#include "dx_bitmap.hxx" #include "dx_bitmap.hxx"
#include "dx_canvasfont.hxx" #include "dx_canvasfont.hxx"
...@@ -125,7 +125,7 @@ namespace dxcanvas ...@@ -125,7 +125,7 @@ namespace dxcanvas
rFontRequest.FontDescription.FontDescription.Proportion == rendering::PanoseProportion::MONO_SPACED rFontRequest.FontDescription.FontDescription.Proportion == rendering::PanoseProportion::MONO_SPACED
? PITCH_FIXED : PITCH_VARIABLE); ? PITCH_FIXED : PITCH_VARIABLE);
aFont.SetLanguage(MsLangId::convertLocaleToLanguage(rFontRequest.Locale)); aFont.SetLanguage(LanguageTag(rFontRequest.Locale).getLanguageType());
// setup font color // setup font color
aFont.SetColor( aColor ); aFont.SetColor( aColor );
......
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