Thread: CSS rules
View Single Post
Old 07-19-2017, 07:25 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,377
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You dont specify fonts to embed via @font-face rules. You simply specify the font-families and use the embed all fonts setting. And you want to match on new lines/other invisible characters in regex use the escaped form for the characters. There are many different escaped forms you can use (calibre uses the python regex engine). For example to match newlines, use

\n

@viewport is not a valid CSS 2.1 or 3 rule.
kovidgoyal is online now   Reply With Quote