mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2025-03-13 22:50:01 -04:00
Don't scale text outlines (#685)
This commit is contained in:
parent
a5baa14316
commit
c8a5db311b
1 changed files with 4 additions and 0 deletions
|
@ -120,6 +120,10 @@ const ensureClockwise = function (root) {
|
|||
// Scale item and its strokes by factor
|
||||
const scaleWithStrokes = function (root, factor, pivot) {
|
||||
_doRecursively(root, item => {
|
||||
if (item instanceof paper.PointText) {
|
||||
// Text outline size is controlled by text transform matrix, thus it's already scaled.
|
||||
return;
|
||||
}
|
||||
if (item.strokeWidth) {
|
||||
item.strokeWidth = item.strokeWidth * factor;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue