apibake-js
apibake-js copied to clipboard
Mono fonts not showing, no errors on invalid fonts
When generating the document without any parameters, mono text is rendered with a proportional font:
I tried overriding the fonts in the config file:
{
"font": {
"baseSize": 10,
"mono": {
"norm": {
"face": "/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf"
},
"bold": {
"face": "/usr/share/fonts/truetype/dejavu/DejaVuSansMono-Bold.ttf"
},
"italic": {
"face": "/usr/share/fonts/truetype/dejavu/DejaVuSansMono-Oblique.ttf"
}
}
}
However this did not make any visible difference. The config was definitely loading as it was respecting the baseSize setting.
When I set the face to an invalid font name/ path there were no errors in the console indicating it couldn't find the specified font.
I'm using Linux Mint with ApiBake 0.1.25.
Thanks for this tool! I hope more people use it as it's got a lot of promise to include in CI/CD workflows to automate documentation generation.