How to make SchoolTool recognize that liberation-fonts is already installed

Asked by Andi Sugandi

This happens when SchoolTool is running on non-Debian based distribution (like openSUSE).

When running 'make run' :

$ make run
bin/start-schooltool-instance instance
Reading configuration from /home/andi/Downloads/SchoolTool/schooltool/instance/schooltool.conf
Warning: font directory '/usr/share/fonts/truetype/ttf-liberation' does not exist.
PDF support disabled.
2011-12-29 09:23:41,845 main db: evolving in mode EVOLVEMINIMUM
Starting server in PID 2335.
serving on http://127.0.0.1:7080

Although I can access the site without problem but it's said that SchoolTool does not recognize 'liberation-fonts' is already in place:

$ rpm -ql liberation-fonts
/usr/share/doc/packages/liberation-fonts
/usr/share/doc/packages/liberation-fonts/AUTHORS
/usr/share/doc/packages/liberation-fonts/COPYING
/usr/share/doc/packages/liberation-fonts/ChangeLog
/usr/share/doc/packages/liberation-fonts/License.txt
/usr/share/doc/packages/liberation-fonts/README
/usr/share/fonts/truetype
/usr/share/fonts/truetype/LiberationMono-Bold.ttf
/usr/share/fonts/truetype/LiberationMono-BoldItalic.ttf
/usr/share/fonts/truetype/LiberationMono-Italic.ttf
/usr/share/fonts/truetype/LiberationMono-Regular.ttf
/usr/share/fonts/truetype/LiberationSans-Bold.ttf
/usr/share/fonts/truetype/LiberationSans-BoldItalic.ttf
/usr/share/fonts/truetype/LiberationSans-Italic.ttf
/usr/share/fonts/truetype/LiberationSans-Regular.ttf
/usr/share/fonts/truetype/LiberationSansNarrow-Bold.ttf
/usr/share/fonts/truetype/LiberationSansNarrow-BoldItalic.ttf
/usr/share/fonts/truetype/LiberationSansNarrow-Italic.ttf
/usr/share/fonts/truetype/LiberationSansNarrow-Regular.ttf
/usr/share/fonts/truetype/LiberationSerif-Bold.ttf
/usr/share/fonts/truetype/LiberationSerif-BoldItalic.ttf
/usr/share/fonts/truetype/LiberationSerif-Italic.ttf
/usr/share/fonts/truetype/LiberationSerif-Regular.ttf

Maybe it happens because non-Debian based distribution has different standard font location?

Any work-around to solve the issue? and should I fill a bug?

Question information

Language:
English Edit question
Status:
Solved
For:
SchoolTool Edit question
Assignee:
No assignee Edit question
Solved by:
Douglas Cerna
Solved:
Last query:
Last reply:
Revision history for this message
Tom Hoffman (tom-hoffman) said :
#1

I think it just requires a change in a configuration file. We'll get back to you.

Revision history for this message
Best Douglas Cerna (replaceafill) said :
#2

Try changin in your /home/andi/Downloads/SchoolTool/schooltool/instance/schooltool.conf file:

reportlab_fontdir /usr/share/fonts/truetype/ttf-liberation

to

reportlab_fontdir /usr/share/fonts/truetype

Revision history for this message
Andi Sugandi (andisugandi) said :
#3

Thanks Douglas Cerna, that solved my question.