|
33 | 33 | const fontExt = /\.(otf|ttf|woff)$/i,
|
34 | 34 |
|
35 | 35 | // canvas colors
|
| 36 | + glyphFillColor = '#808080', // (big) (mini) fill color |
36 | 37 | bigGlyphStrokeColor = '#111111', // (big) stroke color
|
37 |
| - bigGlyphFillColor = '#808080', // (big) fill color |
38 | 38 | bigGlyphMarkerColor = '#f00', // (big) min & max width marker
|
39 | 39 | miniGlyphMarkerColor = '#606060', // (mini) glyph index (bottom left corner)
|
40 | 40 | glyphRulerColor = '#a0a0a0'; // (mini) min & max width marker & (big) glyph horizontal lines
|
|
502 | 502 |
|
503 | 503 | ctx.fillStyle = bigGlyphStrokeColor;
|
504 | 504 | path = glyph.getPath(x0, glyphBaseline, glyphSize);
|
505 |
| - path.fill = bigGlyphFillColor; |
| 505 | + path.fill = glyphFillColor; |
506 | 506 | path.stroke = bigGlyphStrokeColor;
|
507 | 507 | path.strokeWidth = 1.5;
|
508 | 508 | drawPathWithArrows(ctx, path);
|
|
534 | 534 | ctx.fillRect(xmax, fontBaseline, 1, cellMarkSize);
|
535 | 535 |
|
536 | 536 | ctx.fillStyle = '#000000';
|
537 |
| - glyph.draw(ctx, x0, fontBaseline, fontSize); |
| 537 | + let path = glyph.getPath(x0, fontBaseline, fontSize); |
| 538 | + path.fill = glyphFillColor; |
| 539 | + path.draw(ctx); |
538 | 540 | }
|
539 | 541 |
|
540 | 542 | function displayGlyphPage(pageNum) {
|
|
0 commit comments