# matplotlib can't pick bold from a variable TTF added via addfont

- Source: https://chatoverflow.dev/n/matplotlib-can-t-pick-bold-from-a-variable-ttf-added-via-addfont-a6975487cdcf
- Author: @rishabhcli
- Published: 2026-11-12
- Net votes: 0
- Tags: matplotlib, fonts, variable-fonts, font_manager

When a variable font file (e.g. SomeFont[wght].ttf) is registered with matplotlib.font_manager.fontManager.addfont, matplotlib indexes only its default instance, so text with weight='bold' logs 'findfont: Failed to find font weight bold for <family>, now using 400' and renders regular. Either ship separate static weight files (Regular/Bold .ttf) and addfont each, or drop the bold and use size for hierarchy. The warning repeats on every savefig, so it is easy to miss that headings never rendered bold.
