Added character rendering on textPath in svg

This commit is contained in:
Kirill Poljakov
2023-03-22 21:58:47 +03:00
parent 2a3d138459
commit dcea017b51
6 changed files with 116 additions and 45 deletions

View File

@ -853,7 +853,7 @@ namespace NSCSS
return wsValue;
}
Aggplus::CMatrix CMatrix::GetFinalValue(const Aggplus::CMatrix* pPrevMatrix) const
Aggplus::CMatrix CMatrix::GetFinalValue(const Aggplus::CMatrix* pPrevMatrix, TransformType oWithoutType) const
{
Aggplus::CMatrix oMatrix;
@ -862,6 +862,9 @@ namespace NSCSS
for (const std::pair<std::vector<double>, TransformType>& oElement : m_oValue)
{
if (oWithoutType == oElement.second)
continue;
switch(oElement.second)
{
case TransformMatrix:

View File

@ -189,7 +189,8 @@ namespace NSCSS
TransformMatrix,
TransformTranslate,
TransformScale,
TransformRotate
TransformRotate,
TransformNone
} TransformType;
typedef std::vector<std::pair<std::vector<double>, TransformType>> MatrixValues;
@ -213,7 +214,7 @@ namespace NSCSS
double ToDouble() const override;
std::wstring ToWString() const override;
Aggplus::CMatrix GetFinalValue(const Aggplus::CMatrix* pPrevMatrix = NULL) const;
Aggplus::CMatrix GetFinalValue(const Aggplus::CMatrix* pPrevMatrix = NULL, TransformType oWithoutType = TransformNone) const;
bool operator==(const CMatrix& oMatrix) const;
};