Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New font list functionality does not work #26

Closed
mdevDE opened this issue Mar 16, 2018 · 1 comment
Closed

New font list functionality does not work #26

mdevDE opened this issue Mar 16, 2018 · 1 comment

Comments

@mdevDE
Copy link

mdevDE commented Mar 16, 2018

Jodit Version: 3.1.71

Code
font: {
list: {
"font-family: -apple-system,BlinkMacSystemFont,Segoe WPC,Segoe UI,HelveticaNeue-Light,Ubuntu,Droid Sans,sans-serif;": "OS System Font",
"Helvetica,sans-serif": "Helvetica",
"Arial,Helvetica,sans-serif": "Arial",
"Georgia,serif": "Georgia",
"Impact,Charcoal,sans-serif": "Impact",
"Tahoma,Geneva,sans-serif": "Tahoma",
"'Times New Roman',Times,serif": "Times New Roman",
"Verdana,Geneva,sans-serif": "Verdana"
}
}
Expected behavior:
Set the selected font family
Actual behavior:
Does not set the font family

jodit_bug4

@xdan
Copy link
Owner

xdan commented Mar 17, 2018

You should use only fontname, without font-family keyword, And if font-family has space in it name, it should be in quotes

controls: {
    font: {
        list: {
            "-apple-system,BlinkMacSystemFont,\'Segoe WPC\',\'Segoe UI\',HelveticaNeue-Light,Ubuntu,\'Droid Sans\',sans-serif": "OS System Font",
      }
  }
 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants