CSS: font-family for graph view

I’m trying to style the font of the graph view, but I can’t identify the selector. According to Obsidian Help: Graph View:

Since the graph is rendered using <canvas> and WebGL, CSS is unable to affect things like nodes and links. To customize graph view, we have provided a way to convert CSS colors into WebGL commands.

The provided selectors have a common parent class, .graph-view. I tried to define its font-family, with !important; it didn’t work.

Why can we change the colors but not the font? Is this limitation inherent to <canvas>?

According to the docs there are a few classes supported

The following CSS classes are supported:

.graph-view.color-fill-tag (theme-dependent)
.graph-view.color-fill-attachment (theme-dependent)
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.