Estos son mis enlaces de fuentes de Google:
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@100;400;900&display=swap" rel="stylesheet">y este es mi codigo css:
h1{ font-family: 'Montserrat', sans-serif; font-weight: 900; }Puedes agregarlo directamente en CSS como:
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300&display=swap'); h1{ font-family: 'Montserrat', sans-serif; font-weight: 900; } Si no funciona, debe ver si bootstrap no está sobrescribiendo esos valores, por lo que debe agregar !important allí como:
h1{ font-family: 'Montserrat', sans-serif!important; font-weight: 900; }