Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Malformed 30-icons.conf for fonts containing special characters #24

Open
volca02 opened this issue Sep 23, 2019 · 1 comment
Open

Malformed 30-icons.conf for fonts containing special characters #24

volca02 opened this issue Sep 23, 2019 · 1 comment

Comments

@volca02
Copy link

volca02 commented Sep 23, 2019

I have B&H LucidaTypewriter font installed in system. After running install.sh, the fc-cache command fails with:

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.

For me, this quick and dirty change in generate_fontconfig.sh worked, but assumes sed is installed:

    FONT_NAME=`echo $FONT_NAME | tr -d '\n' | sed -e 's/&/&amp;/'`
@volca02
Copy link
Author

volca02 commented Sep 23, 2019

That hotfix is clearly not enough for all possible cases, some other special characters will need to be urlencoded as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant