I am trying to achieve a text-stroke effect with transparent text over an image. However, I am facing an issue where the text-stroke also displays lines within the text itself. I am using the Montserrat font from Google Fonts. Can anyone provide assistance?
Below are my HTML and CSS codes:
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=block');
.header-title {
font-family: 'Montserrat', sans-serif;
font-size: 66px;
font-weight: 900;
line-height: 117.02px;
-webkit-text-fill-color: transparent;
-webkit-text-stroke: 2px black;
-webkit-font-smoothing: antialiased;
}
<h1 class="header-title">ABCD EFGH</h1>