theZiz / aha

Ansi HTML Adapter
Other
907 stars 88 forks source link

Choose a different font for the output #77

Open leowill01 opened 3 years ago

leowill01 commented 3 years ago

Is there any way to specify a different (monospace) font for the HTML output? To get the output HTML in the font SF Mono, for example, I tried:

... | aha -y 'font-family: "SF Mono"'

, but the HTML output is still in what looks like Courier. Disclaimer: I don't really know CSS.

theZiz commented 3 years ago

Me neither. :grin: So I guess to problem is, that the whole aha outout is inside <pre> tags. The font of them you can define with css:

pre {
    font-family: "SF Mono";
}

I saved this as an own file and gave it to the -c parameter of aha, e.g. if you save the css setting as mono.css like this:

… | aha -c mono.css

Hope this helps!