react-pdf: Cannot use with Japanese? ("Cannot read property 'layout' of null")

This seems like a strange issue but I’m able to render a PDF in-browser fine when it’s using English characters, but as soon as I switch for Japanese characters (一時使用目的の建物賃貸借契約書) I get the following error:

 TypeError: Cannot read property 'layout' of null

You can reproduce the error here by replacing any text with that Japanese string: http://react-pdf.diegomura.com/repl

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 17 (5 by maintainers)

Most upvoted comments

Otf files are not supported. Obly ttf