[Koha-bugs] [Bug 12549] Hard coded font Paths ( DejaVu ) cause problems for non-Debian systems

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jul 10 09:01:55 CEST 2014


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

--- Comment #1 from Nicholas van Oudtshoorn <vanoudt at 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.


More information about the Koha-bugs mailing list