http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12549

--- Comment #1 from Nicholas van Oudtshoorn <vano...@gmail.com> ---
It's not in perl, but the following bash snippet (hacky, but works!) could set
the proper paths...

#!/bin/bash
tr=$(fc-list : file | grep DejaVuSerif.ttf)
tb=$(fc-list : file | grep DejaVuSerif-Bold.ttf)
ti=$(fc-list : file | grep DejaVuSerif-Italic.ttf)
tbi=$(fc-list : file | grep DejaVuSerif-BoldItalic.ttf)
c=$(fc-list : file | grep DejaVuSansMono.ttf)
cb=$(fc-list : file | grep DejaVuSansMono-Bold.ttf)
co=$(fc-list : file | grep DejaVuSansMono-Oblique.ttf)
cbo=$(fc-list : file | grep DejaVuSansMono-BoldOblique.ttf)
h=$(fc-list : file | grep DejaVuSans.ttf)
ho=$(fc-list : file | grep DejaVuSans-Oblique.ttf)
hb=$(fc-list : file | grep DejaVuSans-Bold.ttf)
hbo=$(fc-list : file | grep DejaVuSans-BoldOblique.ttf)
echo "<font type=\"TR\" >${tr%??}</font>"
echo "<font type=\"TB\" >${tb%??}</font>"
echo "<font type=\"TI\" >${ti%??}</font>"
echo "<font type=\"TBI\" >${tbi%??}</font>"
echo "<font type=\"C\" >${c%??}</font>"
echo "<font type=\"CB\" >${cb%??}</font>"
echo "<font type=\"CO\" >${co%??}</font>"
echo "<font type=\"CBO\" >${cbo%??}</font>"
echo "<font type=\"H\" >${h%??}</font>"
echo "<font type=\"HO\" >${ho%??}</font>"
echo "<font type=\"HB\" >${hb%??}</font>"
echo "<font type=\"HBO\" >${hbo%??}</font>"

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to