View Single Post
Old 03-11-2012, 01:05 PM   #126
yiming
Zealot
yiming is kind to children and small, furry animalsyiming is kind to children and small, furry animalsyiming is kind to children and small, furry animalsyiming is kind to children and small, furry animalsyiming is kind to children and small, furry animalsyiming is kind to children and small, furry animalsyiming is kind to children and small, furry animalsyiming is kind to children and small, furry animalsyiming is kind to children and small, furry animalsyiming is kind to children and small, furry animalsyiming is kind to children and small, furry animals
 
Posts: 127
Karma: 6744
Join Date: Dec 2011
Device: Kindle Touch, PW2, PW5
@ixtab:

the freetype font engine may create new problems, but it also unexpectedly helped solve a problem with Chinese font hacking.

i changed the Chinese fonts in my KT by creating this font config under /etc/fonts/conf.d:

Code:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>


<!-- sans serif -->
<match target="pattern" name="family">
	<test name="family">
		<string>Helvetica Neue LT</string>
	</test>
	<edit name="family" mode="append">
		<string>FZBoYaFangKanSongK bold</string>
	</edit>
</match>

<!-- serif -->
<match target="pattern" name="family">
        <test name="family">
                <string>Caecilia Regular</string>
        </test>
        <edit name="family" mode="append">
                <string>XHei</string>
        </edit>
</match>
                                                                

<!-- condensed -->
<match target="pattern" name="family">
        <test name="family">
                <string>condensed</string>
        </test>
        <edit name="family" mode="append">
                <string>FZShuSong-Z01</string>
        </edit>
</match>

</fontconfig>
as there is no native bold font included, the bold font is rendered by the KT. the result is the bold font will have a lot of "bleeding". this problem has been troubling those who hack their Chinese fonts for quite some time. but with the freetype engine provided by you the problem is solved! thank you so much.

Last edited by yiming; 03-13-2012 at 05:49 AM.
yiming is offline   Reply With Quote