View Single Post
Old 04-27-2013, 07:51 AM   #481
fred_be9300
Junior Member
fred_be9300 doesn't litterfred_be9300 doesn't litter
 
Posts: 7
Karma: 100
Join Date: Apr 2013
Location: Belgium
Device: Kindle Paperwhite + Android apps
Quote:
Originally Posted by fred_be9300 View Post
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.

Last edited by fred_be9300; 04-27-2013 at 11:44 AM.
fred_be9300 is offline   Reply With Quote