[Tex/LaTex] Problem with the \mathbf command


In this MWE, I want to obtain bold letter for the letter "H" (compare the two "H") :

\documentclass[10 pt]{beamer}
\usepackage{lmodern} % load a font with all the characters
\usepackage{amsmath}%loads amsmath that should go before unicode-math
\defaultfontfeatures{Mapping=tex-text}  % This seems to be important for mapping glyphs properly

\mbox{First bold H : }\|x\|_{\mathbf{H}},\; \mbox{Second bold H : }\mathbf{H} 

but I don't know how doing it.
THe "H" produced by this MWE is tiny but no bold effect. If I use


I obtain bold tiny "H" but the font used still not the same.

Best Answer

For sizes below 10pt the cmbright package is subsetting bold fonts (which don't exists) and uses the normal weight instead. You can change this by adding this code behind cmbright:

\fontencoding{OT1}\fontfamily{cmbr}\selectfont %to load ot1cmbr.fd
\DeclareFontShape{OT1}{cmbr}{bx}{n}{% change bx definition
\normalfont % back to normalfont
Related Question