Skip to content

Commit 7a05c9a

Browse files
committed
Add better fallback fonts in pcb rendering
Fixes #3
1 parent 4dbfa24 commit 7a05c9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

InteractiveHtmlBom/ibom.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@
225225
</style>
226226
<script type="text/javascript" >
227227
/*
228-
Split.js - v1.3.5
228+
Split.js - v1.3.5
229229
MIT License
230230
https://github.com/nathancahill/Split.js
231231
*/
@@ -507,7 +507,7 @@
507507
var ctx = canvas.getContext("2d");
508508
ctx.setTransform(1, 0, 0, 1, 0, 0);
509509
fontsize = 1.5 * scalefactor;
510-
ctx.font = "bold " + fontsize + "px Monospace";
510+
ctx.font = "bold " + fontsize + "px Consolas,\"DejaVu Sans Mono\",monospace";
511511
ctx.textBaseline = "middle";
512512
if (layer == "F") {
513513
ctx.translate(tx, ty);

0 commit comments

Comments
 (0)