diff options
author | hdu <duerr@sun.com> | 2010-02-22 17:16:11 +0100 |
---|---|---|
committer | hdu <duerr@sun.com> | 2010-02-22 17:16:11 +0100 |
commit | d4bfdbf4901acf6ad798019780f62c4c93a6c145 (patch) | |
tree | 0edcbf2e46e362b343914c3f86a14af9b6b2ac14 /vcl/source | |
parent | da2c680d23b67d4721aa29f740475fd6d40e2e08 (diff) |
#i101552# implement dynamic glyph fallback for WIN (thanks yanminjia!)
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/gdi/outdev3.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vcl/source/gdi/outdev3.cxx b/vcl/source/gdi/outdev3.cxx index 28fa4f8f5461..3aa98004c500 100644 --- a/vcl/source/gdi/outdev3.cxx +++ b/vcl/source/gdi/outdev3.cxx @@ -1661,6 +1661,18 @@ void ImplDevFontList::InitMatchData() const } } +//---------------------------------------------------------------------------- +ImplDevFontListData* ImplDevFontList::ImplFindByLocale(com::sun::star::lang::Locale lc) const +{ + // get the default font for a specified locale + const DefaultFontConfiguration& rDefaults = *DefaultFontConfiguration::get(); + String aDefault = rDefaults.getUserInterfaceFont( lc ); + ImplDevFontListData* pFontData = ImplFindByTokenNames( aDefault ); + if( pFontData ) + return pFontData; + return 0; +} + // ----------------------------------------------------------------------- ImplDevFontListData* ImplDevFontList::ImplFindByAttributes( ULONG nSearchType, |