type3 font.coded comment; proper geometery for showText; glyph name

This commit is contained in:
notmasteryet 2011-12-13 18:28:02 -06:00
parent c9981b6ff4
commit 45ef8742ac
2 changed files with 3 additions and 3 deletions

View file

@ -687,8 +687,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
if (textSelection) {
this.save();
ctx.scale(fontSize, fontSize);
ctx.transform.apply(ctx, fontMatrix);
ctx.scale(1, -1);
text.geom = this.getTextGeometry();
this.restore();
}
@ -785,6 +784,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
if (textSelection) {
ctx.save();
// Type3 fonts - each glyph is a "mini-PDF" (see also showText)
if (font.coded) {
ctx.transform.apply(ctx, current.textMatrix);
ctx.scale(1, -1);