Ignore:
Timestamp:
2016-08-12T03:16:58+02:00 (10 years ago)
Author:
Don-vip
Message:

fix #13291 - upgrade to svgSalamander v1.1.0 (patched)

now detects two invalid SVG files: presets/sport/volleyball.svg and presets/shop/diy_store.svg

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/com/kitfox/svg/Tspan.java

    r8084 r10787  
    231231        {
    232232            font = new FontSystem(fontFamily, fontStyle, fontWeight, (int)fontSize);
    233 //            addShapeSysFont(addShape, font, fontFamily, fontSize, letterSpacing, cursor);
    234 //            return;
    235         }
    236 
    237         FontFace fontFace = font.getFontFace();
    238         int ascent = fontFace.getAscent();
    239         float fontScale = fontSize / (float) ascent;
     233        }
    240234
    241235        AffineTransform xform = new AffineTransform();
    242 
    243         strokeWidthScalar = 1f / fontScale;
    244236
    245237        float cursorX = (float)cursor.getX();
    246238        float cursorY = (float)cursor.getY();
    247239   
    248 //        int i = 0;
    249 
    250240        String drawText = this.text;
    251241        drawText = drawText.trim();
     
    267257                cursorY += dy[i];
    268258            }
    269   //          i++;
    270259           
    271260            xform.setToIdentity();
    272261            xform.setToTranslation(cursorX, cursorY);
    273             xform.scale(fontScale, fontScale);
    274262            if (rotate != null)
    275263            {
     
    287275            }
    288276
    289             cursorX += fontScale * glyph.getHorizAdvX() + letterSpacing;
     277            cursorX += glyph.getHorizAdvX() + letterSpacing;
    290278        }
    291279
Note: See TracChangeset for help on using the changeset viewer.