From owner-svn-ports-head@freebsd.org Sat Sep 19 23:07:24 2015 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E2B449CF878; Sat, 19 Sep 2015 23:07:24 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-wi0-x22b.google.com (mail-wi0-x22b.google.com [IPv6:2a00:1450:400c:c05::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 70526199D; Sat, 19 Sep 2015 23:07:24 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: by wiclk2 with SMTP id lk2so103196867wic.0; Sat, 19 Sep 2015 16:07:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=+oqYXm5esMJpdPOKr1xL0yV7ylK83OdFEgfrbdDrjmY=; b=AuZ1NpX9vu4qnve91aRnbhFL8Xci3qhgO8+GVcqeWQPM433SmeeLq0tzs45WXOE9NM WlBwS49YegQ1Tq+hRVTLZ5tzASd8fy9w8R9D8nQZ95NMOxHts4nL8Ut+W0LlhxkAANUA wO/eZXukwBqDpQV8TnIe9th3JKt+ueNsoT+aOUlL8XQAQwGGzNXvKHlaXRe6KyaSE8jv Wxd+ClM4ZplWNN76c1iJUWeoXT9GTFz2Qk3KE6mlza/0JIPdRKpZhUJrZSNspxs8KqJ2 dPy3Bn6SCToLyWf5ps7mhIb4x6SpYb8YBDiIc5lt51ZqrEwO96CqATIizRyjOBZ72FQL s9xQ== X-Received: by 10.180.100.161 with SMTP id ez1mr5734126wib.60.1442704041849; Sat, 19 Sep 2015 16:07:21 -0700 (PDT) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by smtp.gmail.com with ESMTPSA id gl4sm16098304wjb.29.2015.09.19.16.07.20 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 19 Sep 2015 16:07:21 -0700 (PDT) Sender: Baptiste Daroussin Date: Sun, 20 Sep 2015 01:07:19 +0200 From: Baptiste Daroussin To: Hiroki Sato Cc: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: Re: svn commit: r396872 - in head: Keywords Mk/Uses Message-ID: <20150919230718.GK57815@ivaldir.etoilebsd.net> References: <201509132330.t8DNUMEd025676@repo.freebsd.org> <20150914055033.GA54344@ivaldir.etoilebsd.net> <20150920.075558.41121606053469872.hrs@allbsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pN9MePJoZbRKbUk1" Content-Disposition: inline In-Reply-To: <20150920.075558.41121606053469872.hrs@allbsd.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Sep 2015 23:07:25 -0000 --pN9MePJoZbRKbUk1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 20, 2015 at 07:55:58AM +0900, Hiroki Sato wrote: > Baptiste Daroussin wrote > in <20150914055033.GA54344@ivaldir.etoilebsd.net>: >=20 > ba> On Sun, Sep 13, 2015 at 11:30:22PM +0000, Hiroki Sato wrote: > ba> > Author: hrs > ba> > Date: Sun Sep 13 23:30:21 2015 > ba> > New Revision: 396872 > ba> > URL: https://svnweb.freebsd.org/changeset/ports/396872 > ba> > > ba> > Log: > ba> > Add "fc", "fcfontsdir", "fontsdir", and "none" arguments to USES= =3Dfonts. > ba> > They controls whether fc-cache and/or mkfontdir run in > ba> > post-{,de}install targets. > ba> > > ba> > japanese/font-* use manually generates fonts.dir entries to utili= ze > ba> > special modifiers which are useful for CJK fonts. Because mkfont= dir > ba> > does not understand and silently remove them from fonts.dir, > ba> > options like fonts:fc or fonts:none is required. > ba> > > ba> > Approved by: portmgr (bapt) > ba> > ba> Thank you! can you add a comment at the top of fonts.mk to explain th= is issue? > ba> That would avoid someone else coming in a few years making the same m= istake as I > ba> did. >=20 > Sorry for the delay. I added some comments about this just now. >=20 > ba> Do you know how they do fix in linux land? because when working on th= e fonts, I > ba> found nothing special being done on any Linux distro, have I missed s= omething? >=20 > I do not think most of Linux distros care about CJK fonts in > XLFD---at least for Japanese fonts. Some distros for Japanese market > use a small script to generate fonts.dir. RedHat was using ttmkfdir > utility (included as x11-fonts/ttmkfdir but removed a while ago), but > there is no special handling of fonts.dir in RPM of Japanese fonts > these days. This may be because most of applications which support > CJK fonts now use Xft/fontconfig only. >=20 > ttmkfdir is one of the utilities which can understand extensions > designed for CJK fonts (-x flag). The difference from normal XFLD > entries is modifiers. In the following example: >=20 > fn=3D1:dfhsg3.ttc -dynalab-dfhsgothicp-light-r-normal--0-0-0-0-p-0-jisx0= 208.1983-0 >=20 > "fn" specifies font number in TTC. And since most of Japanese fonts > do not have italic variant in the font glyphs, "ai" is used to > generate "poor man's italic" glyphs: >=20 > fn=3D1:ai=3D0.1:dfhsg3.ttc -dynalab-dfhsgothicp-light-i-normal--0-0-0-0-= p-0-jisx0208.1983-0 >=20 > I am still not sure of what is the best way for us to maintain > fonts.dir which mkfontdir cannot understand. While ttmkfdir supports > it, this utility is not upper-compatible with mkfontdir. One of the > practical ways is that putting a Japanese font to a separate > directory and maintaining fonts.dir by pkg-{,de}install script. >=20 First thanks for the explanation and the comment that would prevent someone= like me doing the same mistake. Do you know if someone is speaking with xorg people to that they can work o= n the issue? Best regards, Bapt --pN9MePJoZbRKbUk1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlX96qYACgkQ8kTtMUmk6Ex0jgCffckOHKxRi1hqC3FuKFEhnld5 O30AoLK7UxQnkOMN0pGu/88MXDVx+TkO =sEp/ -----END PGP SIGNATURE----- --pN9MePJoZbRKbUk1--