ChordPro / chordpro

Reference implementation of the ChordPro standard for musical lead sheets.
Other
306 stars 50 forks source link

System Fonts on Windows #392

Closed spakarl closed 1 week ago

spakarl commented 1 month ago

Whenever I try to use the system fonts under Windows 11 I fail.

I have installed the latest version (6.050) and get the following error message:

Use of uninitialized value in pack at C:/Program Files/ChordPro.ORG/ChordPro/script/../lib/PDF/API2/Resource/CIDFont.pm line 162.

(This line repeats many times)

I'm using the following config file: fonts.json

chordpro --about  

ChordPro: A lyrics and chords formatting program.

ChordPro will read a text file containing the lyrics of one or many
songs plus chord information. ChordPro will then generate a
photo-ready, professional looking, impress-your-friends sheet-music
suitable for printing on your nearest printer.

To learn more about ChordPro, look for the man page or do
"chordpro --help" for the list of options.

For more information, see https://www.chordpro.org .

Run-time information:
  ChordPro core          6.050
  Perl                   v5.30.2    (C:/Program Files/ChordPro.ORG/ChordPro/chordpro.exe)
  PPL Packager           1.00
  Resource path          C:/Program Files/ChordPro.ORG/ChordPro/lib/ChordPro/res
  ABC support            QuickJS_XS (ABC2SVG version v1.22.12 of 2023-12-22)

Modules and libraries:
  Storable               3.25
  Object::Pad            0.79
  Text::Layout           0.032
  File::LoadLines        1.045
  PDF::API2              2.043
  SVGPDF                 0.083
  Font::TTF              1.06
  JavaScript::QuickJS    0.18
sciurius commented 1 month ago

Your font setup looks okay. This error usually indicates that the text contains characters that are not included in the font. For example special symbols like arrows ← ↑ → .

sciurius commented 1 week ago

The upcoming release will have decent fonts bundled and use these instead of the limited built-in fonts.