|
@@ -35,7 +35,7 @@ export default function CharacterGraph({ graphData }) {
|
|
|
// Always show node label
|
|
|
const label = node.name;
|
|
|
const fontSize = 20 / globalScale;
|
|
|
- ctx.font = `${fontSize}px Arial`;
|
|
|
+ ctx.font = `${fontSize}px Sans-Serif`;
|
|
|
const textWidth = ctx.measureText(label).width;
|
|
|
const bckgDimensions = [textWidth, fontSize].map(
|
|
|
(n) => n + fontSize * 0.2
|