PdfSharpCore icon indicating copy to clipboard operation
PdfSharpCore copied to clipboard

No Fonts installed on this device

Open maxwell60701 opened this issue 3 years ago • 2 comments

how to drawstring font in chinese,thanks

maxwell60701 avatar Nov 29 '22 12:11 maxwell60701

it reports "No Fonts installed on this device!" in linux container,the ttf file can not be found if i copy it to "/usr/local/share/fonts" directory,if i copy it to "/usr/local/share/fonts/myfont" directory,it works. I saw the source codes,it only catch the ttf files under the subfolder in your path. foreach (string subDir in Directory.EnumerateDirectories(path, "*", SearchOption.AllDirectories)) fontList.AddRange(Directory.EnumerateFiles(subDir, "*", SearchOption.AllDirectories));

maxwell60701 avatar Dec 01 '22 06:12 maxwell60701

Looks like similar to this: https://github.com/ststeiger/PdfSharpCore/issues/125 Did you install fontconfig ? Maybe it has posibility to setup custom fonts?

IndexGit avatar Dec 05 '22 12:12 IndexGit