joiningdata / lollipops

Lollipop-style mutation diagrams for annotating genetic variations.
GNU General Public License v3.0
186 stars 70 forks source link

error: no font loaded - cannot make PNG! #61

Closed pbnjay closed 2 years ago

pbnjay commented 2 years ago

Hi!

I've been using your tool for quite some time to visualize mutation locations.

However, I now receive an error when using the tool.

./lollipops -U P26640 -o test.png R273C R175H T125 R248Q -f=/share/YC_Dir/chengxc/software/lollipops/lollipops-v1.5.4-linux64/Arial.ttf
shows

no font loaded - cannot make PNG!

if I use this: lollipops-v1.5.4-linux64/lollipops -U P26640 -o test.png R273C R175H T125 R248Q ERROR: Unable to find Arial.ttf - Which is required for accurate font sizing. Please use -f=/path/to/arial.ttf or the TrueType (.ttf) font of your choice. Gene Symbol: SYVC_HUMAN Drawing diagram to test.png 2022/09/21 17:03:32 no font loaded - cannot make PNG!

Any idea how to fix this?

Originally posted by @chengxc032403 in https://github.com/joiningdata/lollipops/issues/59#issuecomment-1253414274

pbnjay commented 2 years ago

Hi @chengxc032403 - I believe you just need to put the -f option first, the list of variants must be the last part of the line:

./lollipops -f=/share/YC_Dir/chengxc/software/lollipops/lollipops-v1.5.4-linux64/Arial.ttf -o test.png -U P26640 R273C R175H T125 R248Q