Add one more font name to check for new web fonts locally.

This commit is contained in:
Davide P. Cervone 2014-03-05 09:51:41 -05:00
parent 81d9cce510
commit cfb40e9190

View File

@ -105,7 +105,8 @@
// //
var family = font.familyFixed || font.family; var family = font.familyFixed || font.family;
if (!family.match(/^(STIX|MathJax)|'/)) { if (!family.match(/^(STIX|MathJax)|'/)) {
family = family.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2") + "','" + family + "-"; family = family.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/ Jax/,"Jax")
+ "','" + family + "','" + family + "-";
if (font.weight) {family += "Bold"}; if (font.style) {family += "Italic"} if (font.weight) {family += "Bold"}; if (font.style) {family += "Italic"}
if (!font.weight && !font.style) {family += "Regular"} if (!font.weight && !font.style) {family += "Regular"}
font.familyFixed = family = "'"+family+"'" font.familyFixed = family = "'"+family+"'"