Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jan 2006 14:01:42 +0900 (JST)
From:      Yamashiro Jun <yamajun@ofug.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/92489: japanese/sazanami-ttf: Add configuration file for x11-fonts/fontconfig
Message-ID:  <20060129050142.6E3D11570AB@ns.ofug.net>
Resent-Message-ID: <200601290510.k0T5A2J4073125@freefall.freebsd.org>

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

>Number:         92489
>Category:       ports
>Synopsis:       japanese/sazanami-ttf: Add configuration file for x11-fonts/fontconfig
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 29 05:10:02 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Yamashiro Jun
>Release:        FreeBSD 6.0-RELEASE-p3 i386
>Organization:
Okinawa FreeBSD Users Group
>Environment:
System: FreeBSD localhost 6.0-RELEASE-p3 FreeBSD 6.0-RELEASE-p3 #1: Wed Jan 18 08:57:30 PST 2006     root@PCBSD.localhost:/usr/obj/usr/src/sys/GENERIC  i386

	
>Description:
Add configuration file "20.sazanami-ttf.conf" to ${PREFIX}/etc/fonts/conf.d .
This file make aliases sazanami fonts to "serif" and "sans-serif".
(Reference from japanese/ipa-ttfonts/files/2.ipa-ttfonts.conf)


>How-To-Repeat:
	
>Fix:

Apply this patch:

diff -Nru sazanami-ttf.orig/Makefile sazanami-ttf/Makefile
--- sazanami-ttf.orig/Makefile	Sun Jan 29 04:16:27 2006
+++ sazanami-ttf/Makefile	Sun Jan 29 12:02:06 2006
@@ -7,6 +7,7 @@
 
 PORTNAME=	sazanami-ttf
 PORTVERSION=	20040629
+PORTREVISION=	1
 CATEGORIES=	japanese x11-fonts
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE_JP}
 MASTER_SITE_SUBDIR=	efont/10087
@@ -52,6 +53,9 @@
 	${LN} -s -f \
 		${PREFIX}/${FONTSDIR}/sazanami-mincho.ttf \
 		${LOCALBASE}/${LOCALFONTSDIR}/TrueType/sazanami-mincho.ttf
+	${MKDIR} ${PREFIX}/etc/fonts/conf.d
+	${INSTALL_DATA} ${FILESDIR}/20.sazanami-ttf.conf \
+			${PREFIX}/etc/fonts/conf.d
 .if !defined(NOPORTDOCS)
 	${MKDIR} ${DOCSDIR}
 .for F in ${DOC_FILES:Mdoc/*}
diff -Nru sazanami-ttf.orig/files/20.sazanami-ttf.conf sazanami-ttf/files/20.sazanami-ttf.conf
--- sazanami-ttf.orig/files/20.sazanami-ttf.conf	Wed Dec 31 16:00:00 1969
+++ sazanami-ttf/files/20.sazanami-ttf.conf	Sun Jan 29 13:01:23 2006
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<!-- $FreeBSD$ -->
+<fontconfig>
+	<alias>
+		<family>serif</family>
+		<prefer>
+			<family>Sazanami Mincho</family>
+		</prefer>
+	</alias>
+	<alias>
+		<family>sans-serif</family>
+		<prefer>
+			<family>Sazanami Gothic</family>
+		</prefer>
+	</alias>
+	<alias>
+		<family>monospace</family>
+		<prefer>
+			<family>Sazanami Gothic</family>
+			<family>Sazanami Mincho</family>
+		</prefer>
+	</alias>
+	<match target="font">
+		<test name="family">
+			<string>Sazanami Mincho</string>
+			<string>Sazanami Gothic</string>
+		</test>
+		<edit name="hintstyle">
+			<const>hintslight</const>
+		</edit>
+		<edit name="autohint">
+			<bool>false</bool>
+		</edit>
+	</match>
+</fontconfig>
diff -Nru sazanami-ttf.orig/pkg-plist sazanami-ttf/pkg-plist
--- sazanami-ttf.orig/pkg-plist	Sun Jan 29 04:16:27 2006
+++ sazanami-ttf/pkg-plist	Sun Jan 29 11:59:10 2006
@@ -1,4 +1,5 @@
 @comment $FreeBSD: ports/japanese/sazanami-ttf/pkg-plist,v 1.2 2005/03/07 18:58:58 hrs Exp $
+etc/fonts/conf.d/20.sazanami-ttf.conf
 %%FONTSDIR%%/fonts.alias.sazanami
 %%FONTSDIR%%/fonts.dir.sazanami
 %%FONTSDIR%%/sazanami-mincho.ttf

>Release-Note:
>Audit-Trail:
>Unformatted:



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