diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2015-12-24 11:49:14 +1100 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2015-12-24 01:31:58 +0000 |
commit | 4842b8f2fbdbf543effb92d4df332b50e3ffd6f7 (patch) | |
tree | 8191be2cb66314dd6798a6fa39c6d17e3775def7 /vcl/win | |
parent | 7379306004363d0fc2820c1ace6c4aef4421b7e4 (diff) |
vcl: update names of find functions in PhysicalFontCollection
The main issue I have with the naming convention is that it doesn't
show you clearly what you are finding. We look for FontFamily instances,
but later on down the track what if we want to find something else?
Change-Id: I0a4267581eafd0bf17548e8d16814b5b49d27ec9
Reviewed-on: https://gerrit.libreoffice.org/20916
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'vcl/win')
-rw-r--r-- | vcl/win/gdi/salgdi3.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/win/gdi/salgdi3.cxx b/vcl/win/gdi/salgdi3.cxx index 02982f6d6dd9..ca8b49ed236a 100644 --- a/vcl/win/gdi/salgdi3.cxx +++ b/vcl/win/gdi/salgdi3.cxx @@ -500,7 +500,7 @@ namespace // get the default font for a specified locale const utl::DefaultFontConfiguration& rDefaults = utl::DefaultFontConfiguration::get(); const OUString aDefault = rDefaults.getUserInterfaceFont(rLanguageTag); - return rFontCollection.FindByTokenNames(aDefault); + return rFontCollection.FindFontFamilyByTokenNames(aDefault); } } @@ -543,7 +543,7 @@ bool WinGlyphFallbackSubstititution::FindFontSubstitute( FontSelectPattern& rFon } // are the missing characters symbols? - pFontFamily = pFontCollection->FindByAttributes( ImplFontAttrs::Symbol, + pFontFamily = pFontCollection->FindFontFamilyByAttributes( ImplFontAttrs::Symbol, rFontSelData.GetWeight(), rFontSelData.GetWidthType(), rFontSelData.GetSlant(), |