Commit 8379b7af authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov
parent d896f09f
...@@ -512,7 +512,7 @@ namespace NSCommon ...@@ -512,7 +512,7 @@ namespace NSCommon
oRenderer.put_FontPath(strFontPath); oRenderer.put_FontPath(strFontPath);
pManager->LoadFontFromFile(strFontPath, lFaceIndex, 14, dDpi, dDpi); pManager->LoadFontFromFile(strFontPath, lFaceIndex, 14, dDpi, dDpi);
BOOL bIsSymbol = FALSE; INT bIsSymbol = FALSE;
if (pManager->m_pFont) if (pManager->m_pFont)
{ {
...@@ -550,7 +550,7 @@ namespace NSCommon ...@@ -550,7 +550,7 @@ namespace NSCommon
oRenderer.put_FontCharSpace(0); oRenderer.put_FontCharSpace(0);
oRenderer.put_FontSize(14); oRenderer.put_FontSize(14);
oRenderer.CommandDrawText(pPair->second.m_sName, 5, 25.4 * (index * lH1_px + lH1_px) / dDpi - 2, 0, 0, 0); oRenderer.CommandDrawText(pPair->second.m_sName, 5, 25.4 * (index * lH1_px + lH1_px) / dDpi - 2, 0, 0);
} }
std::wstring strThumbnailPath = strFolderThumbnails + L"/fonts_thumbnail"; std::wstring strThumbnailPath = strFolderThumbnails + L"/fonts_thumbnail";
......
...@@ -658,12 +658,12 @@ namespace NSFile ...@@ -658,12 +658,12 @@ namespace NSFile
dwSizeRead = (DWORD)fread((void*)pData, 1, nBytesToRead, m_pFile); dwSizeRead = (DWORD)fread((void*)pData, 1, nBytesToRead, m_pFile);
return true; return true;
} }
bool WriteFile(BYTE* pData, DWORD nBytesCount) bool WriteFile(const BYTE* pData, DWORD nBytesCount)
{ {
if (!m_pFile) if (!m_pFile)
return false; return false;
size_t nCountWrite = fwrite((void*)pData, 1, nBytesCount, m_pFile); size_t nCountWrite = fwrite((const void*)pData, 1, nBytesCount, m_pFile);
return true; return true;
} }
long TellFile() long TellFile()
......
...@@ -471,6 +471,15 @@ namespace NSStructures ...@@ -471,6 +471,15 @@ namespace NSStructures
lStyle |= Strikeout << 7; lStyle |= Strikeout << 7;
return lStyle; return lStyle;
} }
long GetStyle2() const
{
long lStyle = 0;
if (Bold)
lStyle |= 0x01;
if (Italic)
lStyle |= 0x02;
return lStyle;
}
void SetStyle(long const& lStyle) void SetStyle(long const& lStyle)
{ {
Bold = (0x01 == (0x01 & lStyle)); Bold = (0x01 == (0x01 & lStyle));
......
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