Date: Sun, 20 Sep 2015 01:23:19 +0200 From: Baptiste Daroussin <bapt@FreeBSD.org> To: Hiroki Sato <hrs@FreeBSD.org> 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: <20150919232319.GA88199@ivaldir.etoilebsd.net> In-Reply-To: <20150920.082158.1766417747729697298.hrs@allbsd.org> References: <20150914055033.GA54344@ivaldir.etoilebsd.net> <20150920.075558.41121606053469872.hrs@allbsd.org> <20150919230718.GK57815@ivaldir.etoilebsd.net> <20150920.082158.1766417747729697298.hrs@allbsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--6c2NcOVqGQ03X4Wi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 20, 2015 at 08:21:58AM +0900, Hiroki Sato wrote: > Baptiste Daroussin <bapt@FreeBSD.org> wrote > in <20150919230718.GK57815@ivaldir.etoilebsd.net>: >=20 > ba> On Sun, Sep 20, 2015 at 07:55:58AM +0900, Hiroki Sato wrote: > ba> > Baptiste Daroussin <bapt@FreeBSD.org> wrote > ba> > in <20150914055033.GA54344@ivaldir.etoilebsd.net>: > ba> > > ba> > ba> On Sun, Sep 13, 2015 at 11:30:22PM +0000, Hiroki Sato wrote: > ba> > ba> > Author: hrs > ba> > ba> > Date: Sun Sep 13 23:30:21 2015 > ba> > ba> > New Revision: 396872 > ba> > ba> > URL: https://svnweb.freebsd.org/changeset/ports/396872 > ba> > ba> > > ba> > ba> > Log: > ba> > ba> > Add "fc", "fcfontsdir", "fontsdir", and "none" arguments to= USES=3Dfonts. > ba> > ba> > They controls whether fc-cache and/or mkfontdir run in > ba> > ba> > post-{,de}install targets. > ba> > ba> > > ba> > ba> > japanese/font-* use manually generates fonts.dir entries to= utilize > ba> > ba> > special modifiers which are useful for CJK fonts. Because = mkfontdir > ba> > ba> > does not understand and silently remove them from fonts.dir, > ba> > ba> > options like fonts:fc or fonts:none is required. > ba> > ba> > > ba> > ba> > Approved by: portmgr (bapt) > ba> > ba> > ba> > ba> Thank you! can you add a comment at the top of fonts.mk to expl= ain this issue? > ba> > ba> That would avoid someone else coming in a few years making the = same mistake as I > ba> > ba> did. > ba> > > ba> > Sorry for the delay. I added some comments about this just now. > ba> > > ba> > ba> Do you know how they do fix in linux land? because when working= on the fonts, I > ba> > ba> found nothing special being done on any Linux distro, have I mi= ssed something? > ba> > > ba> > I do not think most of Linux distros care about CJK fonts in > ba> > XLFD---at least for Japanese fonts. Some distros for Japanese mar= ket > ba> > use a small script to generate fonts.dir. RedHat was using ttmkfd= ir > ba> > utility (included as x11-fonts/ttmkfdir but removed a while ago), = but > ba> > there is no special handling of fonts.dir in RPM of Japanese fonts > ba> > these days. This may be because most of applications which support > ba> > CJK fonts now use Xft/fontconfig only. > ba> > > ba> > ttmkfdir is one of the utilities which can understand extensions > ba> > designed for CJK fonts (-x flag). The difference from normal XFLD > ba> > entries is modifiers. In the following example: > ba> > > ba> > fn=3D1:dfhsg3.ttc -dynalab-dfhsgothicp-light-r-normal--0-0-0-0-p-0= -jisx0208.1983-0 > ba> > > ba> > "fn" specifies font number in TTC. And since most of Japanese fon= ts > ba> > do not have italic variant in the font glyphs, "ai" is used to > ba> > generate "poor man's italic" glyphs: > ba> > > ba> > fn=3D1:ai=3D0.1:dfhsg3.ttc -dynalab-dfhsgothicp-light-i-normal--0-= 0-0-0-p-0-jisx0208.1983-0 > ba> > > ba> > I am still not sure of what is the best way for us to maintain > ba> > fonts.dir which mkfontdir cannot understand. While ttmkfdir suppo= rts > ba> > it, this utility is not upper-compatible with mkfontdir. One of t= he > ba> > practical ways is that putting a Japanese font to a separate > ba> > directory and maintaining fonts.dir by pkg-{,de}install script. > ba> > > ba> First thanks for the explanation and the comment that would prevent s= omeone like > ba> me doing the same mistake. > ba> > ba> Do you know if someone is speaking with xorg people to that they can = work on the > ba> issue? >=20 > No, I don't. I think it is relatively easy to make a patch to add > ttmkfdir-like feature into mkfontdir, though. >=20 Maybe that is what we should do then. Best regards, Bapt --6c2NcOVqGQ03X4Wi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlX97mcACgkQ8kTtMUmk6Ew0DACgo52FjavAbyf5Nm9DPzo/e0L4 +TgAnR56rfsXqhLzznEEPnPTqTXxCT6S =XQ8B -----END PGP SIGNATURE----- --6c2NcOVqGQ03X4Wi--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150919232319.GA88199>