How to add two words name of font-family (as 'Open Sans') to inline svg text ?
<svg viewbox='0 24 100 24' fill='#000'> <text font-size='24' fill='#000' font-family='Open+Sans'>MENU</text> </svg>
You don't need the plus symbols; those are only needed when the font name is included in a URL.
<svg viewBox="0 0 100 30"> <text x="0" y="27" font-size="30" fill="#fa0" font-family="Comic Sans MS">MENU</text> </svg>
If you want to add fallback alternatives, add quotation marks like this:
font-family="'Comic Sans MS',cursive"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.