Commit 774f9c42 authored by Oleg Korshul's avatar Oleg Korshul

PDF bugs

parent 10964d32
......@@ -96,7 +96,7 @@ namespace NSFontConverter
// BE = big endian
int GetS8 (int nPos, bool *pbSuccess)
{
*pbSuccess = true;
//*pbSuccess = true;
if ( nPos < 0 || nPos >= m_nLen )
{
......@@ -111,7 +111,7 @@ namespace NSFontConverter
int GetU8 (int nPos, bool *pbSuccess)
{
*pbSuccess = true;
//*pbSuccess = true;
if ( nPos < 0 || nPos >= m_nLen )
{
*pbSuccess = false;
......@@ -122,7 +122,7 @@ namespace NSFontConverter
int GetS16BE (int nPos, bool *pbSuccess)
{
*pbSuccess = true;
//*pbSuccess = true;
if ( nPos < 0 || nPos + 1 >= m_nLen )
{
......@@ -138,7 +138,7 @@ namespace NSFontConverter
int GetU16BE (int nPos, bool *pbSuccess)
{
*pbSuccess = true;
//*pbSuccess = true;
if ( nPos < 0 || nPos + 1 >= m_nLen)
{
......@@ -152,7 +152,7 @@ namespace NSFontConverter
int GetS32BE (int nPos, bool *pbSuccess)
{
*pbSuccess = true;
//*pbSuccess = true;
if ( nPos < 0 || nPos + 3 >= m_nLen )
{
......@@ -171,7 +171,7 @@ namespace NSFontConverter
unsigned int GetU32BE (int nPos, bool *pbSuccess)
{
*pbSuccess = true;
//*pbSuccess = true;
if ( nPos < 0 || nPos + 3 >= m_nLen )
{
......@@ -186,7 +186,7 @@ namespace NSFontConverter
}
unsigned int GetU32LE (int nPos, bool *pbSuccess)
{
*pbSuccess = true;
//*pbSuccess = true;
if ( nPos < 0 || nPos + 3 >= m_nLen )
{
......@@ -201,7 +201,7 @@ namespace NSFontConverter
}
unsigned int GetUVarBE(int nPos, int nSize, bool *pbSuccess)
{
*pbSuccess = true;
//*pbSuccess = true;
if ( nPos < 0 || nPos + nSize > m_nLen )
{
......
......@@ -1261,6 +1261,10 @@ namespace NSHtmlRenderer
m_pInternal->m_bPageOpened = false;
m_pInternal->m_pFontManager = m_pInternal->m_oApplicationFonts.GenerateFontManager();
CFontsCache* pGraphicsFontCache = new CFontsCache();
pGraphicsFontCache->SetStreams(m_pInternal->m_oApplicationFonts.GetStreams());
pGraphicsFontCache->SetCacheSize(16);
m_pInternal->m_pFontManager->SetOwnerCache(pGraphicsFontCache);
m_pInternal->m_oFont.SetDefaultParams();
m_pInternal->m_oInstalledFont.SetDefaultParams();
......
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