Menu

#49 Chrome issues with fonts

1.0
open
nobody
None
2017-08-31
2017-07-06
No

Assigning some fonts to styles produces an error on PDF preview and disables access to the style editor. To reproduce:

  1. Open Docmenta in Chrome Version 59.0.3071.115 64bits (Tested on both win10 and 7)
  2. Edit or create a style and assing font "Courier New", Courier, mono (other families produce the same error, Courrier is present on the system)
  3. Assign the style to some content and try to create a PDF preview, preview thorws an error: "Failed to Load PDF"
  4. Go to styles and open the edited/created style, clicking on "Style Editor" doesn't open the style editor.
  5. Click on the "x" next to the font field and error message appears:
    "Failed to process
    script
    window.frames[css_frm_name].setStyleTxt is not a function (TypeError)"

This issue isn't present on Firefox.

Discussion

  • Manfred P.

    Manfred P. - 2017-08-21

    Hi,
    This is caused by the double quotes in the font-name. Unfortunately the double-quotes are not correctly escaped. This is a bug and will be fixed with next Docmenta version. (For some reason Firefox automatically removes the double-quotes).

    As a workaround, please replace the double quotes by single quotes. For example, replace "Courier New" by 'Courier New'.

     
  • eric revollo

    eric revollo - 2017-08-31

    Thanks, for the feedback.

     

Log in to post a comment.

MongoDB Logo MongoDB