You can use the vw (viewport width) units to set font-size.
vw
font-size
h1 { font-size: 5vw; }
1vw = 1% of the screen width.
1vw = 1%