Compare commits

...

1 Commits

Author SHA1 Message Date
774f9c42cb PDF bugs 2017-02-01 19:20:12 +03:00
2 changed files with 12 additions and 8 deletions

View File

@ -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 )
{

View File

@ -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();