import type { FilterConfig } from '../definitions' ; export function createTextStyle ( config ) { const lines = [ ] ; lines . push ( '*:not(pre, pre *, code, .far, .fa, .glyphicon, [class*="vjs-"], .fab, .fa-github, .fas, .material-icons, .icofont, .typcn, mu, [class*="mu-"], .glyphicon, .icon) {' ) ; if ( config . useFont && config . fontFamily ) { lines . push ( `  font-family: ${ config . fontFamily } !important;` ) ; } if ( config . textStroke > 0 ) { lines . push ( `  -webkit-text-stroke: ${ config . textStroke }px !important;` ) ; lines . push ( `  text-stroke: ${ config . textStroke }px !important;` ) ; } lines . push ( '}' ) ; return lines . join ( '\n' ) ; }