View Single Post
Old 05-11-2013, 05:39 AM   #487
richy1989
Connoisseur
richy1989 really knows where his or her towel isrichy1989 really knows where his or her towel isrichy1989 really knows where his or her towel isrichy1989 really knows where his or her towel isrichy1989 really knows where his or her towel isrichy1989 really knows where his or her towel isrichy1989 really knows where his or her towel isrichy1989 really knows where his or her towel isrichy1989 really knows where his or her towel isrichy1989 really knows where his or her towel isrichy1989 really knows where his or her towel is
 
Posts: 67
Karma: 70690
Join Date: May 2013
Device: Kindle Paperwhite 1 & Kindle 4 Black
Smile Need your help

Quote:
Originally Posted by RogueLeader View Post
For KPW, 5.3.1, my workaround for curbing the display of the additional stock fonts is to create /etc/fonts/local.conf with the following content:

Code:
<rejectfont>
	<pattern>
		<patelt name="family">
			<string>Song S</string>
		</patelt>
	</pattern>
	<pattern>
		<patelt name="family">
			<string>MKai PRC</string>
		</patelt>
	</pattern>
	<pattern>
		<patelt name="family">
			<string>TBMincho</string>
		</patelt>
	</pattern>
	<pattern>                
		<patelt name="family">   
			<string>TBGothic</string>  
		</patelt>                  
	</pattern>                 
	<pattern>                  
		<patelt name="family">     
			<string>HYGothic</string>   
		</patelt>                   
	</pattern>                  
	<pattern>                   
		<patelt name="family">      
			<string>HYMyeongJo</string> 
		</patelt>                   
	</pattern>                  
	<pattern>                   
		<patelt name="family">      
			<string>MYing Hei T</string>
		</patelt>                   
	</pattern>                  
	<pattern>                   
		<patelt name="family">      
			<string>Song T</string>               
		</patelt>                             
	</pattern>             
	<pattern>                   
		<patelt name="family">      
			<string>MYing Hei S</string>
		</patelt>                   
	</pattern>                  
	<pattern>                   
		<patelt name="family">      
			<string>MT Chinese Surrogates</string>
		</patelt>                             
	</pattern>                            
</rejectfont>
You can add or remove fonts to this file as desired.

There is probably a more elegant solution, as I just scratched the surface of fontconfig to do this, but it worked for me. It allows for the Aa dialog to fit more custom fonts if that is your desire. I just like the fact that the box is once again small enough that you can see the text above/below, thus getting a live preview of your settings.
Excuse me, last night, back to you, there is another question to ask you.

My device is KPW 5.3.5

I am a reader from China, need to use the 'Song T' and the other Chinese fonts. If I modify your code to retain Chinese fonts and refuse English, whether the change will affect the display of English books and system interface English?

PS: 5.3.5 is applicable?
richy1989 is offline   Reply With Quote