Quote:
Originally Posted by fred_be9300
anyone know if 5.3.4 fixed that? (the ability to use alternate.conf to hide some fonts)
|
I was hoping to activate custom fonts without rooting, and hiding the unwanted "extra system fonts".
I activated fonts with USE_ALT_FONTS + fonts folder
I tried putting alternate.conf (unix type line-ends) with the following content.
Code:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<dir>/mnt/us/altfonts</dir>
<rejectfont>
<pattern>
<patelt name="family">
<string>Song S</string>
</patelt>
</pattern>
<pattern>
<patelt name="family">
<string>Song T</string>
</patelt>
</pattern>
<pattern>
<patelt name="family">
<string>MKai PRC</string>
</patelt>
</pattern>
<pattern>
<patelt name="family">
<string>Futura</string>
</patelt>
</pattern>
</rejectfont>
</fontconfig>
but the unwanted fonts still show up, and also fonts in /altfonts are not read - so it seems alternate.conf is not read.
EDIT: PS: I've done the usual device restarts after each modification mentioned above
Tested with 5.3.4 and 5.3.5. As I don't have root access, I don't know if the XML error discovered by DuckieTigger is solved, but it seems not.