fixes font problem on El Capitan OS X
This commit is contained in:
parent
342b1d6a3d
commit
edb4f914ab
1 changed files with 3 additions and 1 deletions
|
@ -56,7 +56,9 @@ Item {
|
||||||
|
|
||||||
function setDefaults() {
|
function setDefaults() {
|
||||||
// font name needs to be enclosed in single quotes
|
// font name needs to be enclosed in single quotes
|
||||||
runJavaScript("document.body.style.fontFamily = \"'" + fontLabel.font.family + "'\";");
|
// and this is needed for El Capitain because ".SF NS Text" won't work
|
||||||
|
var defFont = ', system, -apple-system, ".SFNSDisplay-Regular", "Helvetica Neue", "Lucida Grande"';
|
||||||
|
runJavaScript("document.body.style.fontFamily = \"'" + fontLabel.font.family + "'" + defFont + "\";");
|
||||||
runJavaScript("document.body.style.fontSize = '" + content.textFontSize + "pt';");
|
runJavaScript("document.body.style.fontSize = '" + content.textFontSize + "pt';");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue