jonhoo / inferno

A Rust port of FlameGraph

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not possible to set font in flamegraphs to default fonts

itamarst opened this issue · comments

In CSS I can do:

body {
     font-family: monospace;
}

but I can't do that with flamegraph, because it turns it into:

body {
     font-family: "monospace";
}

which means "the font called monospace" rather than "default monospace font".

Ah, yes, that happens here:

enquote('\"', &opt.font_type),

I think we just need to teach that code path about the "special" font names so that it doesn't escape those! I'd be happy to take a look at a PR 👍