Sublime Forum

How to change font of tooltips?


I’m not sure if it’s something wrong with my setup but the font in tooltips is quite small and with serif, which makes it hard to read:

I’d like to make it sans-serif and bigger, any idea if that can be done?

Specifically this happens with TypeScript and JavaScript code.



Probably because the font went missing in your system.
See: Change font in the tooltip - sublime linters



The screenshot shows a minihtml popup. Fonts are defined via stylesheets, which are defined by the plugin which creates the popup.

Theoretically a color scheme can override those styles in order to create a consistent look and feel for all popups of all plugins. The mechanism isn’t very reliable or convenient in practise as it means compiling stylesheets to JSON (sublime-color-scheme) and seems to have a couple of edge cases, which tends to break more than it helps. It’s therefore not commonly used.

In case the popup is created py mdpopups library you might be lucky to change the font settings via Packages/User/mdpopups.css.

Otherwise you’d have to investigate which plugin creates the popup and whether it provides customization support.