, TTF- :
<style type="text/css">
@font-face {
font-family: 'FontAwesome';
src: url(data:application/x-font-truetype;base64,<< insert base64 encoded fontawesome-webfont.ttf here >>) format('truetype');
font-weight: normal;
font-style: normal;
}
</style>
font-awesome.css. @font-face , wkhtmltopdf @font-face, . , RegEx, at (: @font-face\s*\{[^\}]*\}).
(I tried to leave the original @font-faceintact, hoping that a later definition would overwrite it, but that didn't work. The CSS standard doesn't seem to define what happens when two appear @font-facefor the same font if I read it correctly)
source
share