Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Apr 2003 10:43:42 +0300
From:      Ruslan Ermilov <ru@freebsd.org>
To:        Joe Marcus Clarke <marcus@marcuscom.com>
Cc:        current@freebsd.org
Subject:   Re: fontconfig-2.1.92 considered harmful
Message-ID:  <20030409074342.GA34134@sunbay.com>
In-Reply-To: <1049823157.360.1.camel@gyros>
References:  <20030408132730.GD19391@sunbay.com> <200304081553.52781.a.carter@intrasoft.lu> <20030408135611.GB23660@sunbay.com> <20030408095850.K77443@volatile.chemikals.org> <20030408140716.GA25511@sunbay.com> <1049823157.360.1.camel@gyros>

next in thread | previous in thread | raw e-mail | index | archive | help

--z6Eq5LdranGa6ru8
Content-Type: multipart/mixed; boundary="9amGYk9869ThD9tj"
Content-Disposition: inline


--9amGYk9869ThD9tj
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Apr 08, 2003 at 01:32:37PM -0400, Joe Marcus Clarke wrote:
> On Tue, 2003-04-08 at 10:07, Ruslan Ermilov wrote:
> > On Tue, Apr 08, 2003 at 10:00:32AM -0400, Wesley Morgan wrote:
> > > On Tue, 8 Apr 2003, Ruslan Ermilov wrote:
> > >=20
> > > > At runtime.  When I run xclock under truss(1), it shows the
> > > > paths to the fonts, and never stops doing it, eventually
> > > > eating all memory and being killed by kernel.  The same
> > > > thing happens when I say run mozilla (also upgraded from
> > > > fresh ports).
> > >=20
> > > I've got a -STABLE system running fine with all the latest ports, and=
 my
> > > -CURRENT laptop works as well. Have you checked all your font config =
files
> > > for something like a circular include?
> > >=20
> > Like I said, the problem goes away when I downgrade the port.
> >=20
> > I don't know too much about font config files and never edited
> > them manually; I've just started afresh, removed all of my
> > ports and some garbage that was left, updated the ports tree
> > and reinstalled the ports I need, including XFree86-4.
> >=20
> > The first time I ran startx, I saw an unnormal disk activity,
> > and that turned out to be xclock that is run by default.
> >=20
> > Where do I go to check for this circular include you mention?
>=20
> A freshly installed system shouldn't have such an include.  However, you
> would find either a recursive symlink somewhere in
> /usr/X11R6/lib/X11/fonts,
>=20
find /usr/X11R6/lib/X11/fonts -type l

> or an include loop in
> /usr/X11R6/etc/fonts/fonts.conf.
>=20
Attached.


--=20
Ruslan Ermilov		Sysadmin and DBA,
ru@sunbay.com		Sunbay Software AG,
ru@FreeBSD.org		FreeBSD committer,
+380.652.512.251	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age

--9amGYk9869ThD9tj
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="fonts.conf"
Content-Transfer-Encoding: quoted-printable

<?xml version=3D"1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts.conf file to configure system font access -->
<fontconfig>

<!--
	The intent of this standard configuration file is to be adequate for
	most environments.  If you have a reasonably normal environment and
	have found problems with this configuration, they are probably
	things that others will also want fixed.  Please send any suggested
	changes to fonts@xfree86.org so that future releases can include
	such changes.

	Note that the normal 'make install' procedure for XFree86 is to
	replace any existing fonts.conf file with the new version.  Place
	any local customizations in local.conf which this file references.

	Keith Packard
-->

<!-- Font directory list configured on Tue Apr  8 12:32:31 EEST 2003 -->

	<dir>/usr/X11R6/lib/X11/fonts</dir>
	<dir>~/.fonts</dir>

<!--
  Enable sub-pixel rendering
	<match target=3D"font">
		<test qual=3D"all" name=3D"rgba">
			<const>unknown</const>
		</test>
		<edit name=3D"rgba" mode=3D"assign"><const>rgb</const></edit>
	</match>
-->

<!--
  Accept deprecated 'mono' alias, replacing it with 'monospace'
-->
	<match target=3D"pattern">
		<test qual=3D"any" name=3D"family">
			<string>mono</string>
		</test>
		<edit name=3D"family" mode=3D"assign">
			<string>monospace</string>
		</edit>
	</match>

<!--
  Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'
-->
	<match target=3D"pattern">
		<test qual=3D"any" name=3D"family">
			<string>sans serif</string>
		</test>
		<edit name=3D"family" mode=3D"assign">
			<string>sans-serif</string>
		</edit>
	</match>

<!--
  Accept deprecated 'sans' alias, replacing it with 'sans-serif'
-->
	<match target=3D"pattern">
		<test qual=3D"any" name=3D"family">
			<string>sans</string>
		</test>
		<edit name=3D"family" mode=3D"assign">
			<string>sans-serif</string>
		</edit>
	</match>

<!--
  Mark common families with their generics so we'll get
  something reasonable
-->

<!--
  Serif faces
 -->
	<alias>
		<family>Times</family>
		<family>Times New Roman</family>
		<family>Nimbus Roman No9 L</family>
		<family>Luxi Serif</family>
		<family>Kochi Mincho</family>
		<family>AR PL SungtiL GB</family>
		<family>AR PL Mingti2L Big5</family>
		<family>Baekmuk Batang</family>		=09
		<default><family>serif</family></default>
	</alias>
<!--
  Sans-serif faces
 -->
	<alias>
		<family>Helvetica</family>
		<family>Arial</family>
		<family>Verdana</family>
		<family>Nimbus Sans L</family>
		<family>Luxi Sans</family>
		<family>Kochi Gothic</family>
		<family>AR PL KaitiM GB</family>
		<family>AR PL KaitiM Big5</family>
		<family>Baekmuk Dotum</family>
		<family>SimSun</family>
		<default><family>sans-serif</family></default>
	</alias>
<!--
  Monospace faces
 -->
 	<alias>
		<family>Courier</family>
		<family>Courier New</family>
		<family>Andale Mono</family>
		<family>Luxi Mono</family>
		<family>Nimbus Mono L</family>
		<family>NSimSun</family>
		<default><family>monospace</family></default>
	</alias>
<!--
  If the font still has no generic name, add sans-serif
 -->
	<match target=3D"pattern">
		<test qual=3D"all" name=3D"family" compare=3D"not_eq">
			<string>sans-serif</string>
		</test>
		<test qual=3D"all" name=3D"family" compare=3D"not_eq">
			<string>serif</string>
		</test>
		<test qual=3D"all" name=3D"family" compare=3D"not_eq">
			<string>monospace</string>
		</test>
		<edit name=3D"family" mode=3D"append_last">
			<string>sans-serif</string>
		</edit>
	</match>
=09
<!--
  Load per-user customization file
-->
	<include ignore_missing=3D"yes">~/.fonts.conf</include>

<!--
  Load local system customization file
-->
	<include ignore_missing=3D"yes">local.conf</include>

<!--
  Alias well known font names to available TrueType fonts
-->
	<alias>
		<family>Times</family>
		<accept><family>Times New Roman</family></accept>
	</alias>
	<alias>
		<family>Helvetica</family>
		<accept><family>Verdana</family></accept>
	</alias>
	<alias>
		<family>Arial</family>
		<accept><family>Verdana</family></accept>
	</alias>
	<alias>
		<family>Courier</family>
		<accept><family>Courier New</family></accept>
	</alias>

<!--
  Provide required aliases for standard names
-->
	<alias>
		<family>serif</family>
		<prefer>
			<family>Times New Roman</family>
			<family>Nimbus Roman No9 L</family>
			<family>Luxi Serif</family>
			<family>Times</family>
			<family>Kochi Mincho</family>
			<family>AR PL SungtiL GB</family>
			<family>AR PL Mingti2L Big5</family>
			<family>Baekmuk Batang</family>		=09
		</prefer>
	</alias>
	<alias>
		<family>sans-serif</family>
		<prefer>
			<family>Verdana</family>
			<family>Nimbus Sans L</family>
			<family>Luxi Sans</family>
			<family>Arial</family>
			<family>Helvetica</family>
			<family>Kochi Gothic</family>
			<family>AR PL KaitiM GB</family>
			<family>AR PL KaitiM Big5</family>
			<family>Baekmuk Dotum</family>
			<family>SimSun</family>
		</prefer>
	</alias>
	<alias>
		<family>monospace</family>
		<prefer>
			<family>Andale Mono</family>
			<family>Courier New</family>
			<family>Luxi Mono</family>
			<family>Nimbus Mono L</family>
			<family>Kochi Gothic</family>
			<family>AR PL KaitiM GB</family>
			<family>Baekmuk Dotum</family>
		</prefer>
	</alias>

<!--=20
 Artificial oblique for fonts without an italic or oblique version
 -->
=20
	<match target=3D"font">
		<!-- check to see if the font is roman -->
		<test name=3D"slant">
			<const>roman</const>
		</test>
		<!-- check to see if the pattern requested non-roman -->
		<test target=3D"pattern" name=3D"slant" compare=3D"not_eq">
			<const>roman</const>
		</test>
		<!-- multiply the matrix to slant the font -->
		<edit name=3D"matrix" mode=3D"assign">
			<times>
				<name>matrix</name>
				<matrix><double>1</double><double>.2</double>
					<double>0</double><double>1</double>
				</matrix>
			</times>
		</edit>
		<!-- pretend the font is oblique now -->
		<edit name=3D"slant" mode=3D"assign">
			<const>oblique</const>
		</edit>
	</match>

	<config>
<!--
  These are the default Unicode chars that are expected to be blank
  in fonts.  All other blank chars are assumed to be broken and
  won't appear in the resulting charsets
 -->
		<blank>
			<int>0x0020</int>	<!-- SPACE -->
			<int>0x00a0</int>	<!-- NO-BREAK SPACE -->
			<int>0x00ad</int>	<!-- SOFT HYPHEN -->
			<int>0x115f</int>	<!-- HANGUL CHOSEONG FILLER -->
			<int>0x1160</int>	<!-- HANGUL JUNGSEONG FILLER -->
			<int>0x1680</int>	<!-- OGHAM SPACE MARK -->
			<int>0x2000</int>	<!-- EN QUAD -->
			<int>0x2001</int>	<!-- EM QUAD -->
			<int>0x2002</int>	<!-- EN SPACE -->
			<int>0x2003</int>	<!-- EM SPACE -->
			<int>0x2004</int>	<!-- THREE-PER-EM SPACE -->
			<int>0x2005</int>	<!-- FOUR-PER-EM SPACE -->
			<int>0x2006</int>	<!-- SIX-PER-EM SPACE -->
			<int>0x2007</int>	<!-- FIGURE SPACE -->
			<int>0x2008</int>	<!-- PUNCTUATION SPACE -->
			<int>0x2009</int>	<!-- THIN SPACE -->
			<int>0x200a</int>	<!-- HAIR SPACE -->
			<int>0x200b</int>	<!-- ZERO WIDTH SPACE -->
			<int>0x200c</int>	<!-- ZERO WIDTH NON-JOINER -->
			<int>0x200d</int>	<!-- ZERO WIDTH JOINER -->
			<int>0x200e</int>	<!-- LEFT-TO-RIGHT MARK -->
			<int>0x200f</int>	<!-- RIGHT-TO-LEFT MARK -->
			<int>0x2028</int>	<!-- LINE SEPARATOR -->
			<int>0x2029</int>	<!-- PARAGRAPH SEPARATOR -->
			<int>0x202a</int>	<!-- LEFT-TO-RIGHT EMBEDDING -->
			<int>0x202b</int>	<!-- RIGHT-TO-LEFT EMBEDDING -->
			<int>0x202c</int>	<!-- POP DIRECTIONAL FORMATTING -->
			<int>0x202d</int>	<!-- LEFT-TO-RIGHT OVERRIDE -->
			<int>0x202e</int>	<!-- RIGHT-TO-LEFT OVERRIDE -->
			<int>0x202f</int>	<!-- NARROW NO-BREAK SPACE -->
			<int>0x205f</int>	<!-- MEDIUM MATHEMATICAL SPACE -->
			<int>0x2060</int>	<!-- WORD JOINER -->
			<int>0x2061</int>	<!-- FUNCTION APPLICATION -->
			<int>0x2062</int>	<!-- INVISIBLE TIMES -->
			<int>0x2063</int>	<!-- INVISIBLE SEPARATOR -->
			<int>0x206A</int>	<!-- INHIBIT SYMMETRIC SWAPPING -->
			<int>0x206B</int>	<!-- ACTIVATE SYMMETRIC SWAPPING -->
			<int>0x206C</int>	<!-- INHIBIT ARABIC FORM SHAPING -->
			<int>0x206D</int>	<!-- ACTIVATE ARABIC FORM SHAPING -->
			<int>0x206E</int>	<!-- NATIONAL DIGIT SHAPES -->
			<int>0x206F</int>	<!-- NOMINAL DIGIT SHAPES -->
			<int>0x3000</int>	<!-- IDEOGRAPHIC SPACE -->
			<int>0x3164</int>	<!-- HANGUL FILLER -->
			<int>0xfeff</int>	<!-- ZERO WIDTH NO-BREAK SPACE -->
			<int>0xffa0</int>	<!-- HALFWIDTH HANGUL FILLER -->
			<int>0xfff9</int>	<!-- INTERLINEAR ANNOTATION ANCHOR -->
			<int>0xfffa</int>	<!-- INTERLINEAR ANNOTATION SEPARATOR -->
			<int>0xfffa</int>	<!-- INTERLINEAR ANNOTATION TERMINATOR -->
		</blank>
<!--
  Rescan configuration every 30 seconds when FcFontSetList is called
 -->
		<rescan>
			<int>30</int>
		</rescan>
	</config>

</fontconfig>

--9amGYk9869ThD9tj--

--z6Eq5LdranGa6ru8
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE+k88uUkv4P6juNwoRAoJuAKCI/byQTx2s6S/ubW9451hoXicBsQCdFTtm
5NAmTsrE45I44UYLOpKiliE=
=I478
-----END PGP SIGNATURE-----

--z6Eq5LdranGa6ru8--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030409074342.GA34134>