if (textSelection) {
this.save();
- ctx.scale(fontSize, fontSize);
- ctx.transform.apply(ctx, fontMatrix);
+ ctx.scale(1, -1);
text.geom = this.getTextGeometry();
this.restore();
}
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);
get spaceWidth() {
// trying to estimate space character width
- var possibleSpaceReplacements = ['space', 'minus', '1', 'i'];
+ var possibleSpaceReplacements = ['space', 'minus', 'one', 'i'];
var width;
for (var i = 0, ii = possibleSpaceReplacements.length; i < ii; i++) {
var glyphName = possibleSpaceReplacements[i];