Open volca02 opened 4 years ago
I have B&H LucidaTypewriter font installed in system. After running install.sh, the fc-cache command fails with:
B&H LucidaTypewriter
install.sh
fc-cache
Fontconfig error: "/home/volca/.config/fontconfig/conf.d/30-icons.conf", line 9: not well-formed (invalid token)
with the reason being this line
<alias><family>B&H LucidaTypewriter</family><prefer><family>icons-in-terminal</family></prefer></alias>
I think the FONT_NAME variable needs to be urlencoded before producing the line in fontconfig file.
FONT_NAME
For me, this quick and dirty change in generate_fontconfig.sh worked, but assumes sed is installed:
generate_fontconfig.sh
sed
FONT_NAME=`echo $FONT_NAME | tr -d '\n' | sed -e 's/&/&/'`
That hotfix is clearly not enough for all possible cases, some other special characters will need to be urlencoded as well.
I have
B&H LucidaTypewriter
font installed in system. After runninginstall.sh
, thefc-cache
command fails with:with the reason being this line
I think the
FONT_NAME
variable needs to be urlencoded before producing the line in fontconfig file.For me, this quick and dirty change in
generate_fontconfig.sh
worked, but assumessed
is installed: