lhl2617 / VSLilyPond-PDF-preview

Provides PDF Preview for LilyPond-generated PDFs. Supports point-and-click from PDF to source code.
https://marketplace.visualstudio.com/items?itemName=lhl2617.lilypond-pdf-preview
MIT License
7 stars 8 forks source link

CJK glyph display issue with Harano Aji font #116

Open jeandeaual opened 2 years ago

jeandeaual commented 2 years ago

When displaying this file using VSLilyPond-PDF-preview (VSLilyPond v1.7.3), no character is displayed. The file displays correctly with tomoki1207.pdf v1.2.0 and Adobe Acrobat Reader DC.

It was generated with the following code (requires the Harano Aji fonts installed on the system) using LilyPond 2.23.7:

\version "2.22.0"
\header { tagline = "" }
\markup {
  \override #'(font-name . "Harano Aji Mincho")
  { 見 }
}

This seems to only affect the Harano Aji fonts and not other Japanese fonts like Noto Sans or IPAex.

lhl2617 commented 2 years ago

This might be a problem with PDFjs, which I've pinned to a version and IIRC would not be easily upgradable.

Possible fix would be to upgrade PDFjs and make sure that nothing else breaks, will look when I have time