mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
Added character rendering on textPath in svg
This commit is contained in:
@ -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:
|
||||
|
||||
@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user