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

новая версия

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@60825 954022d7-b5bf-4e40-9824-e11837661b57
parent 5f31c2db
...@@ -1404,7 +1404,12 @@ INT CFontFile::GetString2C(CGlyphString& oString) ...@@ -1404,7 +1404,12 @@ INT CFontFile::GetString2C(CGlyphString& oString)
pCurGlyph->eState = glyphstateNormal; pCurGlyph->eState = glyphstateNormal;
} }
// кернинга нету пока. pCurGlyph->oMetrics = oSizes.oMetrics;
pCurGlyph->bBitmap = oSizes.bBitmap;
pCurGlyph->oBitmap = oSizes.oBitmap;
}
if (true) if (true)
{ {
float fX = oString.m_fX + fPenX; float fX = oString.m_fX + fPenX;
...@@ -1414,12 +1419,6 @@ INT CFontFile::GetString2C(CGlyphString& oString) ...@@ -1414,12 +1419,6 @@ INT CFontFile::GetString2C(CGlyphString& oString)
pCurGlyph->fY = (float)(oString.m_arrCTM[5] + fX * oString.m_arrCTM[1] + fY * oString.m_arrCTM[3] - oString.m_fY); pCurGlyph->fY = (float)(oString.m_arrCTM[5] + fX * oString.m_arrCTM[1] + fY * oString.m_arrCTM[3] - oString.m_fY);
} }
pCurGlyph->oMetrics = oSizes.oMetrics;
pCurGlyph->bBitmap = oSizes.bBitmap;
pCurGlyph->oBitmap = oSizes.oBitmap;
}
fPenX += (float)(m_oCacheSizes[charSymbolObj].fAdvanceX + m_dCharSpacing); fPenX += (float)(m_oCacheSizes[charSymbolObj].fAdvanceX + m_dCharSpacing);
if (m_bNeedDoBold) if (m_bNeedDoBold)
{ {
......
...@@ -419,8 +419,19 @@ INT CFontManager::SetTextMatrix(const double &fA, const double &fB, const double ...@@ -419,8 +419,19 @@ INT CFontManager::SetTextMatrix(const double &fA, const double &fB, const double
if (NULL == m_pFont) if (NULL == m_pFont)
return FALSE; return FALSE;
if (fabs(fB) > 0.1)
{
int y = 0;
++y;
}
/*
if (m_pFont->SetTextMatrix(fA, fB, fC, fD, 0, 0)) if (m_pFont->SetTextMatrix(fA, fB, fC, fD, 0, 0))
m_oString.SetCTM((float)fA, (float)fB, (float)fC, (float)fD, 0, 0); m_oString.SetCTM((float)fA, (float)fB, (float)fC, (float)fD, 0, 0);
*/
m_pFont->SetTextMatrix(fA, fB, fC, fD, 0, 0);
m_oString.SetCTM((float)fA, (float)fB, (float)fC, (float)fD, 0, 0);
m_oString.SetTrans((float)fE, (float)fF); m_oString.SetTrans((float)fE, (float)fF);
return TRUE; return TRUE;
......
...@@ -663,7 +663,7 @@ namespace Aggplus ...@@ -663,7 +663,7 @@ namespace Aggplus
if( fSweepAngle > 0 ) if( fSweepAngle > 0 )
bClockDirection = TRUE; bClockDirection = TRUE;
if( abs(fSweepAngle) >= 360 ) // Целый эллипс if( fabs(fSweepAngle) >= 360 ) // Целый эллипс
{ {
return (0 == Ellipse(fX + fWidth / 2, fY + fHeight / 2, fWidth / 2, fHeight / 2)) ? Ok : GenericError; return (0 == Ellipse(fX + fWidth / 2, fY + fHeight / 2, fWidth / 2, fHeight / 2)) ? Ok : GenericError;
} }
...@@ -1143,7 +1143,7 @@ namespace Aggplus ...@@ -1143,7 +1143,7 @@ namespace Aggplus
if( fSweepAngle > 0 ) if( fSweepAngle > 0 )
bClockDirection = TRUE; bClockDirection = TRUE;
if( abs(fSweepAngle) >= 360 ) // Целый эллипс if( fabs(fSweepAngle) >= 360 ) // Целый эллипс
{ {
return (0 == Ellipse(fX + fWidth / 2, fY + fHeight / 2, fWidth / 2, fHeight / 2)) ? true : false; return (0 == Ellipse(fX + fWidth / 2, fY + fHeight / 2, fWidth / 2, fHeight / 2)) ? true : false;
} }
......
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