Bug 17267

Summary: mandriva config files
Product: fontconfig Reporter: Behdad Esfahbod <freedesktop>
Component: confAssignee: fontconfig-bugs
Status: RESOLVED MOVED QA Contact: Behdad Esfahbod <freedesktop>
Severity: enhancement    
Priority: medium CC: akira, fred
Version: 2.4   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Behdad Esfahbod 2008-08-22 15:32:22 UTC
The 20-fix-globaladvance.conf file we have looks like this:

<fontconfig>
<!--
  Some Asian fonts misadvertise themselves as monospaced when
  in fact they are dual-spaced (half and full).  This makes
  FreeType very confused as it forces all widths to match.
  Undo this magic by disabling the width forcing code -->
        <match target="font">
                <test name="family"><string>GulimChe</string></test>
                <edit name="globaladvance"><bool>false</bool></edit>
        </match>

        <match target="font">
                <test name="family"><string>DotumChe</string></test>
                <edit name="globaladvance"><bool>false</bool></edit>
        </match>

        <match target="font">
                <test name="family"><string>BatangChe</string></test>
                <edit name="globaladvance"><bool>false</bool></edit>
        </match>

        <match target="font">
                <test name="family"><string>GungsuhChe</string></test>
                <edit name="globaladvance"><bool>false</bool></edit>
        </match>
</fontconfig>


Looks to me like this should be changed to target="scan" now?

Also Mandriva has a more generic version:

<fontconfig>
	<!--
		Some Asian fonts misadvertise themselves as monospaced when
		in fact they are dual-spaced (half and full).  This makes
		FreeType very confused as it forces all widths to match.
		Undo this magic by disabling the width forcing code
	-->
	<match target="font">
		<test target="pattern" name="lang" compare="contains">
			<string>zh-tw</string>
			<string>zh-cn</string>
			<string>ja</string>
			<string>ko</string>
		</test>
		<edit name="spacing">
			<const>proportional</const>
		</edit>
		<edit name="globaladvance">
			<bool>false</bool>
		</edit>
	</match>
</fontconfig>

Of course that target="pattern" part is quite bogus.  But the idea of matching on languages the font supports has merit.
Comment 1 Behdad Esfahbod 2008-08-26 01:25:35 UTC
Similarly, this patch of mandriva is an extension of 25-unhint-nonlatin.conf:
http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/fontconfig/current/SOURCES/25-mdv-CJK-disable-hinting.conf?view=markup
Comment 2 Behdad Esfahbod 2008-08-26 01:27:22 UTC
And both fedora and mandriva have this one to turn embedded bitmaps off in select CJK fonts:

http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/fontconfig/current/SOURCES/25-no-bitmap-fedora.conf?view=markup
Comment 3 GitLab Migration User 2018-08-20 21:46:23 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/48.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.