further windows build fix for vcl changes
Caused by1e1ba8611f
and not fixed in83f684c86c
. Change-Id: I43853f1d933a70789c4b89a22d06d2d383493758
This commit is contained in:
parent
2001cb9db7
commit
d7fbc4ad10
1 changed files with 6 additions and 4 deletions
|
@ -165,7 +165,9 @@ ImplFontAttrCache::ImplFontAttrCache( const String& rFileNameURL, const String&
|
|||
aCacheFile >> n; aDFA.SetFamilyType(static_cast<FontFamily>(n));
|
||||
aCacheFile >> n; aDFA.SetSymbolFlag(n != 0);
|
||||
|
||||
aCacheFile.ReadByteStringLine( aDFA.GetStyleName(), RTL_TEXTENCODING_UTF8 );
|
||||
String styleName;
|
||||
aCacheFile.ReadByteStringLine( styleName, RTL_TEXTENCODING_UTF8 );
|
||||
aDFA.SetStyleName( styleName );
|
||||
|
||||
aFontAttributes[ aFontFileURL ] = aDFA;
|
||||
}
|
||||
|
@ -904,7 +906,7 @@ static ImplDevFontAttributes WinFont2DevFontAttributes( const ENUMLOGFONTEXW& rE
|
|||
aDFA.SetSymbolFlag(rLogFont.lfCharSet == SYMBOL_CHARSET);
|
||||
|
||||
// get the font face name
|
||||
aDFA.SetFamilyName(reinterpret_cast<const sal_Unicode*>(rLogFont.lfFaceName));
|
||||
aDFA.SetFamilyName( String().Assign(reinterpret_cast<const sal_Unicode*>(rLogFont.lfFaceName)));
|
||||
|
||||
// use the face's style name only if it looks reasonable
|
||||
const wchar_t* pStyleName = rEnumFont.elfStyle;
|
||||
|
@ -914,7 +916,7 @@ static ImplDevFontAttributes WinFont2DevFontAttributes( const ENUMLOGFONTEXW& rE
|
|||
if( *p < 0x0020 )
|
||||
break;
|
||||
if( p < pEnd )
|
||||
aDFA.SetStyleName(reinterpret_cast<const sal_Unicode*>(pStyleName));
|
||||
aDFA.SetStyleName( String().Assign(reinterpret_cast<const sal_Unicode*>(pStyleName)));
|
||||
|
||||
// get device specific font attributes
|
||||
aDFA.mbOrientation = (nFontType & RASTER_FONTTYPE) == 0;
|
||||
|
@ -1679,7 +1681,7 @@ void WinSalGraphics::GetFontMetric( ImplFontMetricData* pMetric, int nFallbackLe
|
|||
|
||||
wchar_t aFaceName[LF_FACESIZE+60];
|
||||
if( ::GetTextFaceW( mhDC, sizeof(aFaceName)/sizeof(wchar_t), aFaceName ) )
|
||||
pMetric->SetFamilyName(reinterpret_cast<const sal_Unicode*>(aFaceName));
|
||||
pMetric->SetFamilyName( String().Assign( reinterpret_cast<const sal_Unicode*>(aFaceName)));
|
||||
|
||||
// get the font metric
|
||||
TEXTMETRICA aWinMetric;
|
||||
|
|
Loading…
Reference in a new issue