sandflow / imscJS

JavaScript library for rendering IMSC Text and Image Profile documents to HTML5
BSD 2-Clause "Simplified" License
84 stars 31 forks source link

Multiple referenced generic font family names can result in duplicate font-family values #217

Closed nigelmegitt closed 3 years ago

nigelmegitt commented 3 years ago

If the computed value of tts:fontFamily references multiple generic font family names, their mapping to the CSS font-family property may include duplicates.

For example tts:fontFamily="proportionalSansSerif, sansSerif" will generate font-family: Arial,Helvetica,Liberation Sans,sans-serif,sans-serif;.