skip to Main Content

html – font family does not change in the text

change this text : 𝙵𝚘𝚛 𝚊𝚕𝚕 𝚝𝚑𝚎 𝚐𝚘𝚘𝚍 𝚝𝚒𝚖𝚎𝚜 to For all the good times i try with font family but not working .custom-font{ font-family: 'SF Pro Display', sans-serif !important; } <div class="custom-font">𝙵𝚘𝚛 𝚊𝚕𝚕 𝚝𝚑𝚎 𝚐𝚘𝚘𝚍 𝚝𝚒𝚖𝚎𝚜</div>

VIEW QUESTION

Variable Google Fonts not Applying Valid CSS Properties

I am learning how to use variable Google fonts and wrote this HTML: <h1>This heading should be condensed.</h1> with the following CSS: @import url('https://fonts.googleapis.com/css2?family=Anybody:wdth,[email protected],100..700&display=swap'); h1 { font-family: 'Anybody'; font-weight: 900; font-stretch: 50%; } The font 'Anybody' supports width axis (https://fonts.google.com/knowledge/using_type/styling_type_on_the_web_with_variable_fonts)…

VIEW QUESTION
Back To Top
Search