Select multiple font-families in a font-face?
I want to replace ugly and cursive fonts to a legible font.
/*global*/Could it be a way to select multiple 'font-family' to shorter those lines as like below?
@font-face{
font-family:'gungseo';
src:url(https://fonts.gstatic.com/s/nanumgothic/v7/PN_3Rfi-oW3hYwmKDpxS7F_D89jY.woff)}
@font-face{
font-family:'batang';
src:url(https://fonts.gstatic.com/s/nanumgothic/v7/PN_3Rfi-oW3hYwmKDpxS7F_D89jY.woff)}
@font-face{
font-family:'batangche';
src:url(https://fonts.gstatic.com/s/nanumgothic/v7/PN_3Rfi-oW3hYwmKDpxS7F_D89jY.woff)}
@font-face{
font-family:'gungseo','batang','batangche';
src:url(https://fonts.gstatic.com/s/nanumgothic/v7/PN_3Rfi-oW3hYwmKDpxS7F_D89jY.woff)}
Comments
Does your second code not work? Looks ok to me. Don't forget the generic font family at the end, like
cursive
(without quotes). Try if double quotes work in case of single ones don't work for the explicit fonts.→ changes nothing
→ w/ double quotes changes nothing as well.
→ changes "Courier" only
→ changes "Courier" only
Now I remember why I "outsourced" the font stuff into a single .css file for import on my webpages...