From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Sep 12 08:30:04 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 153471065704 for ; Wed, 12 Sep 2012 08:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D628B8FC15 for ; Wed, 12 Sep 2012 08:30:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q8C8U3Po083818 for ; Wed, 12 Sep 2012 08:30:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q8C8U3uj083807; Wed, 12 Sep 2012 08:30:03 GMT (envelope-from gnats) Resent-Date: Wed, 12 Sep 2012 08:30:03 GMT Resent-Message-Id: <201209120830.q8C8U3uj083807@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Hiroto Kagotani Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3865B106566C for ; Wed, 12 Sep 2012 08:26:13 +0000 (UTC) (envelope-from kagotani@serv52.infsys.cne.okayama-u.ac.jp) Received: from serv52.infsys.cne.okayama-u.ac.jp (serv52.infsys.cne.okayama-u.ac.jp [150.46.6.52]) by mx1.freebsd.org (Postfix) with ESMTP id BC8618FC0C for ; Wed, 12 Sep 2012 08:26:12 +0000 (UTC) Received: from serv52.infsys.cne.okayama-u.ac.jp (localhost [127.0.0.1]) by serv52.infsys.cne.okayama-u.ac.jp (8.14.5/8.14.5) with ESMTP id q8C8NApq053009; Wed, 12 Sep 2012 17:23:10 +0900 (JST) (envelope-from kagotani@serv52.infsys.cne.okayama-u.ac.jp) Received: (from root@localhost) by serv52.infsys.cne.okayama-u.ac.jp (8.14.5/8.14.5/Submit) id q8C8N9Tf053008; Wed, 12 Sep 2012 17:23:09 +0900 (JST) (envelope-from kagotani) Message-Id: <201209120823.q8C8N9Tf053008@serv52.infsys.cne.okayama-u.ac.jp> Date: Wed, 12 Sep 2012 17:23:09 +0900 (JST) From: Hiroto Kagotani To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/171567: [PATCH] japanese/font-ricty: rendered as non-monospace font X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Sep 2012 08:30:04 -0000 >Number: 171567 >Category: ports >Synopsis: [PATCH] japanese/font-ricty: rendered as non-monospace font >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Sep 12 08:30:02 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Hiroto Kagotani >Release: FreeBSD 9.0-RELEASE-p3 amd64 >Organization: >Environment: System: FreeBSD myhost.mydomain 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 02:52:29 UTC 2012 >Description: Though Ricty is expected to be a monospace font for programming, it is treated as non-monospace font due to its incompatibility with FreeBSD's renderer. Added file(s): - files/patch-ricty_generator.sh Port maintainer (masaki@club.kyutech.ac.jp) is cc'd. Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: suffix) >How-To-Repeat: On emacs, set font by (set-frame-font "Ricty-12.5"), and type 40 l's, 40 i's and 40 D's on consequtive lines for example. >Fix: Replace the generator script with the latest one in the head of the upstream repository. (Only three lines are significant) --- ja-font-ricty-3.2.0_2.patch begins here --- diff -ruN --exclude=CVS ../font-ricty.orig/files/patch-ricty_generator.sh ./files/patch-ricty_generator.sh --- ../font-ricty.orig/files/patch-ricty_generator.sh 1970-01-01 09:00:00.000000000 +0900 +++ ./files/patch-ricty_generator.sh 2012-09-12 17:00:34.000000000 +0900 @@ -0,0 +1,75 @@ +--- ./ricty_generator.sh.orig 2012-04-16 21:41:48.000000000 +0900 ++++ ./ricty_generator.sh 2012-09-12 16:57:30.000000000 +0900 +@@ -2,7 +2,7 @@ + + # + # Ricty Generator +-ricty_version="3.2.0" ++ricty_version="3.2.1b" + # + # Author: Yasunori Yusa + # +@@ -17,13 +17,13 @@ + # How to use: + # 1. Install FontForge + # Debian/Ubuntu: # apt-get install fontforge +-# Fedora: # yum install fontforge ++# Fedora/CentOS: # yum install fontforge ++# OpenSUSE: # zypper install fontforge + # Other Linux: Get from http://fontforge.sourceforge.net/ + # 2. Get Inconsolata.otf +-# Debian/Ubuntu: # apt-get install ttf-inconsolata +-# Other Linux: Get from http://levien.com/type/myfonts/inconsolata.html ++# from http://levien.com/type/myfonts/inconsolata.html + # 3. Get migu-1m-regular/bold.ttf +-# Get from http://mix-mplus-ipa.sourceforge.jp/ ++# from http://mix-mplus-ipa.sourceforge.jp/ + # 4. Run this script + # % sh ricty_generator.sh auto + # or +@@ -411,8 +411,6 @@ + + "Licenses:\n" \\ + + "SIL Open Font License Version 1.1 " \\ + + "(http://scripts.sil.org/OFL)\n" \\ +- + "M+ FONTS LICENSE " \\ +- + "(http://mplus-fonts.sourceforge.jp/mplus-outline-fonts/#license)\n" \\ + + "IPA Font License Agreement v1.0 " \\ + + "(http://ipafont.ipa.go.jp/ipa_font_license_v1.html)" + version = "${ricty_version}" +@@ -466,7 +464,8 @@ + # edit zenkaku space (from ballot box and heavy greek cross) + if ("$zenkaku_space_glyph" == "") + Select(0u2610); Copy(); Select(0u3000); Paste() +- Select(0u271a); Copy(); Select(0u3000); PasteInto(); OverlapIntersect() ++ Select(0u271a); Copy(); Select(0u3000); PasteInto() ++ OverlapIntersect() + else + Select(${zenkaku_space_glyph}); Copy(); Select(0u3000); Paste() + endif +@@ -481,16 +480,19 @@ + CenterInWidth() + # edit en dash + Select(0u2013); Copy() +- PasteWithOffset(200, 0); PasteWithOffset(-200, 0); OverlapIntersect() +- # edit em dash and horizontal bar ++ PasteWithOffset(200, 0); PasteWithOffset(-200, 0) ++ OverlapIntersect() ++ # edit em dash + Select(0u2014); Copy() +- PasteWithOffset(620, 0); PasteWithOffset(-620, 0) +- Select(0u2010); Copy() +- Select(0u2014); PasteInto() ++ PasteWithOffset(320, 0); PasteWithOffset(-320, 0) ++ Select(0u007c); Copy(); Select(0u2014); PasteInto() + OverlapIntersect() +- Copy(); Select(0u2015); Paste() ++ # detach and remove .notdef ++ Select(".notdef") ++ DetachAndRemoveGlyphs() + # post-proccess +- SelectWorthOutputting(); RoundToInt(); RemoveOverlap(); RoundToInt() ++ SelectWorthOutputting() ++ RoundToInt(); RemoveOverlap(); RoundToInt() + # generate Ricty + if (addfontfamily != "") + Print("Save " + fontfamily + addfontfamily + "-" + fontstyle_list[i] + ".ttf.") --- ja-font-ricty-3.2.0_2.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: