Commit 7f7f8578 authored by Ivan.Shulga's avatar Ivan.Shulga Committed by Alexander Trofimov

linux build (disabled font cutter)

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@59068 954022d7-b5bf-4e40-9824-e11837661b57
parent 8fc3c1e3
...@@ -156,7 +156,7 @@ namespace NSFontCutter ...@@ -156,7 +156,7 @@ namespace NSFontCutter
template<typename T> template<typename T>
void WriteEmbeddedFonts(T* pWriter) void WriteEmbeddedFonts(T* pWriter)
{ {
#ifdef BUILD_CONFIG_FULL_VERSION #if defined(BUILD_CONFIG_FULL_VERSION) && !defined(DONT_WRITE_EMBEDDED_FONTS)
ULONG nCount = 0; ULONG nCount = 0;
for(std::map<CString, CEmbeddedFontInfo>::iterator pPair = m_mapFontsEmbeddded.begin(); pPair != m_mapFontsEmbeddded.end(); ++pPair) for(std::map<CString, CEmbeddedFontInfo>::iterator pPair = m_mapFontsEmbeddded.begin(); pPair != m_mapFontsEmbeddded.end(); ++pPair)
...@@ -319,7 +319,7 @@ namespace NSFontCutter ...@@ -319,7 +319,7 @@ namespace NSFontCutter
delete [] pArrayUnicodes; delete [] pArrayUnicodes;
RELEASEINTERFACE(pFontConverter); RELEASEINTERFACE(pFontConverter);
#endif #endif // #if defined(BUILD_CONFIG_FULL_VERSION) && !defined(DONT_WRITE_EMBEDDED_FONTS)
} }
bool GenerateSafearray(USHORT **ppArray, size_t& nCount) bool GenerateSafearray(USHORT **ppArray, size_t& nCount)
...@@ -354,7 +354,7 @@ namespace NSFontCutter ...@@ -354,7 +354,7 @@ namespace NSFontCutter
return true; return true;
} }
#ifdef BUILD_CONFIG_FULL_VERSION #if defined(BUILD_CONFIG_FULL_VERSION) && !defined(DONT_WRITE_EMBEDDED_FONTS)
void WriteFont(CString& strName, LONG& lFaceIndex, CString& strFontPath, CFile* pFile, USHORT* pArrayUnicodes, size_t pArrayUnicodesLength, Fonts::IFontConverter* pFontConverter) void WriteFont(CString& strName, LONG& lFaceIndex, CString& strFontPath, CFile* pFile, USHORT* pArrayUnicodes, size_t pArrayUnicodesLength, Fonts::IFontConverter* pFontConverter)
{ {
LONG lFontConverterFlag = 16; // truetype only LONG lFontConverterFlag = 16; // truetype only
...@@ -389,7 +389,7 @@ namespace NSFontCutter ...@@ -389,7 +389,7 @@ namespace NSFontCutter
RELEASEARRAY(pArrayData); RELEASEARRAY(pArrayData);
} }
#endif #endif // #if defined(BUILD_CONFIG_FULL_VERSION) && !defined(DONT_WRITE_EMBEDDED_FONTS)
}; };
} }
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
#include "../../Common/DocxFormat/Source/SystemUtility/File.h" #include "../../Common/DocxFormat/Source/SystemUtility/File.h"
#include "BinReaderWriterDefines.h" #include "BinReaderWriterDefines.h"
#ifdef _WIN32
#include "FontCutter.h" #include "FontCutter.h"
#endif
//#include "../../DesktopEditor/fontengine/FontManager.h" //#include "../../DesktopEditor/fontengine/FontManager.h"
#include "../../DesktopEditor/fontengine/ApplicationFonts.h" #include "../../DesktopEditor/fontengine/ApplicationFonts.h"
......
...@@ -21,7 +21,8 @@ DEFINES += UNICODE \ ...@@ -21,7 +21,8 @@ DEFINES += UNICODE \
NODOCX \ NODOCX \
DISABLE_FILE_DOWNLOADER \ DISABLE_FILE_DOWNLOADER \
CXIMAGE_DONT_DECLARE_TCHAR \ CXIMAGE_DONT_DECLARE_TCHAR \
BUILD_CONFIG_FULL_VERSION BUILD_CONFIG_FULL_VERSION \
DONT_WRITE_EMBEDDED_FONTS
INCLUDEPATH += \ INCLUDEPATH += \
/usr/include/libxml2 /usr/include/libxml2
......
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