Skip to content

Commit

Permalink
auto formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tommadams committed Aug 13, 2021
1 parent 2ea0621 commit 3208adb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
1 change: 0 additions & 1 deletion src/glyph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ export class Glyph extends Element {
point = data.point;
}


const scale = (point * 72.0) / (metrics.font.getResolution() * 100.0);

Glyph.renderOutline(ctx, metrics.outline, scale * metrics.scale, x_pos + metrics.x_shift, y_pos + metrics.y_shift);
Expand Down
13 changes: 1 addition & 12 deletions tests/boundingboxcomputation_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,18 +205,7 @@ const BoundingBoxComputationTests = {

// Regression test for a prior bug: compute the bounding box again,
// this time using the Glyph.getOutlineBoundingBox code path.
const o = [
OutlineCode.MOVE,
x0,
-y0,
OutlineCode.BEZIER,
x3,
-y3,
x1,
-y1,
x2,
-y2,
];
const o = [OutlineCode.MOVE, x0, -y0, OutlineCode.BEZIER, x3, -y3, x1, -y1, x2, -y2];
const bbox = VF.Glyph.getOutlineBoundingBox(o, 1, 0, 0);
rect(ctx, '#fa0', 1, bbox.x, bbox.y, bbox.w, bbox.h);

Expand Down

0 comments on commit 3208adb

Please sign in to comment.