Commit bdaccc6c authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov

git-svn-id:...

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@52732 954022d7-b5bf-4e40-9824-e11837661b57
parent 207c9b67
...@@ -36,16 +36,6 @@ namespace NSFontCutter ...@@ -36,16 +36,6 @@ namespace NSFontCutter
{ {
m_strFontsDir = strDir; m_strFontsDir = strDir;
#ifdef BUILD_CONFIG_OPENSOURCE_VERSION
if (_T("") != m_strFontsDir)
m_pFontManager->Init(L"", TRUE, TRUE);
else
{
BSTR bsFolder = m_strFontsDir.AllocSysString();
m_pFontManager->Init(bsFolder, FALSE, TRUE);
SysFreeString(bsFolder);
}
#else
if (_T("") != m_strFontsDir) if (_T("") != m_strFontsDir)
{ {
VARIANT var; VARIANT var;
...@@ -56,9 +46,14 @@ namespace NSFontCutter ...@@ -56,9 +46,14 @@ namespace NSFontCutter
} }
else else
{ {
#ifdef BUILD_CONFIG_OPENSOURCE_VERSION
m_pFontManager->Init(L"", VARIANT_TRUE, VARIANT_FALSE);
#else
m_pFontManager->Initialize(L""); m_pFontManager->Initialize(L"");
#endif
} }
#ifdef BUILD_CONFIG_FULL_VERSION
CString defaultFontName = _T("Arial"); CString defaultFontName = _T("Arial");
BSTR defFontName = defaultFontName.AllocSysString(); BSTR defFontName = defaultFontName.AllocSysString();
m_pFontManager->SetDefaultFont(defFontName); m_pFontManager->SetDefaultFont(defFontName);
......
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