ports/171567: [PATCH] japanese/font-ricty: rendered as non-monospace font
Hiroto Kagotani
hiroto.kagotani at gmail.com
Wed Sep 12 08:30:04 UTC 2012
>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 at 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 <lastname at save dot sys.t.u-tokyo.ac.jp>
+ #
+@@ -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:
More information about the freebsd-ports-bugs
mailing list