Use fallback font stack for Lucida font

This commit is contained in:
Tautvidas Sipavičius
2016-04-12 12:51:56 +03:00
parent 3b76f838d1
commit 9d6d72dd8c
5 changed files with 14 additions and 7 deletions

View File

@@ -140,5 +140,12 @@ define('handlebars_helpers', ['handlebars'], function(Handlebars) {
return parseInt(string, 10);
});
Handlebars.registerHelper('fontWithFallback', function(font) {
switch(font) {
case 'Lucida': return new Handlebars.SafeString("'Lucida Sans Unicode', 'Lucida Grande', sans-serif");
default: return font;
}
});
window.Handlebars = Handlebars;
});