トップ «前の日記(2012-04-29) 最新 次の日記(2012-05-01)» 編集

ヨタの日々

2001|08|09|10|11|12|
2002|01|02|03|04|05|06|07|08|09|10|11|12|
2003|01|02|03|04|05|06|07|08|09|10|11|12|
2004|01|02|03|04|05|06|07|08|09|10|11|12|
2005|01|02|03|04|05|06|07|08|09|10|11|12|
2006|01|02|03|04|05|06|07|08|09|10|11|12|
2007|01|02|03|04|05|06|07|08|09|10|11|12|
2008|01|02|03|04|05|06|07|08|09|10|11|12|
2009|01|02|03|04|05|06|07|08|09|10|11|12|
2010|01|02|03|04|05|06|07|08|09|10|11|12|
2011|01|02|03|04|05|06|07|08|09|10|11|12|
2012|01|02|03|04|05|06|07|08|09|10|11|12|
2013|01|02|03|04|05|06|07|08|09|10|11|12|
2014|01|02|03|04|05|06|07|08|09|10|11|12|
2015|01|02|03|04|05|06|07|08|09|10|11|12|
2016|01|02|03|04|05|06|07|08|09|10|11|12|
2017|01|02|03|04|05|06|07|08|09|10|11|12|
2018|01|02|03|04|05|06|07|08|09|10|11|12|
2019|01|02|03|04|05|06|07|08|09|10|11|12|
2020|01|02|03|04|05|06|07|08|09|10|11|12|
2021|01|02|03|04|05|06|07|08|09|10|11|12|
2022|01|02|03|04|05|06|07|08|09|10|11|12|
2023|01|02|03|04|05|06|07|08|12|
2024|01|02|03|

2012-04-30 :-)

_ 午前

0600 起床 || 走る

0800 読書

1030 おひる。うどん

_ 午後

1200 rictyほげ

1400 散歩

IMG_9707

_

1700 無線LANほげ

1800 rictyほげ

2100 飯。ぶりの照り焼き。

2200 読書

2230 rictyほげ

_ [ricty][フォント]わあい Windows で Ricty 使えるようになったよー

プログラミング用フォント Ricty

既知の問題
一部の環境において、生成されたフォントの全角文字の文字間隔が不自然に大きくなることがあります。
生成されたフォントを os2version_reviser.sh に食べさせることで修正できます。

ttf はすでに生成してあるので[ 20120429#p05 ] 続きから作業。

スクリプト取得。

% wget https://raw.github.com/yascentur/Ricty/master/misc/os2version_reviser.sh

変換。

% sh os2version_reviser.sh  Ricty*.ttf

テキトーに Windows へ持ってきてフォントを上書きインストール。

さらに MacType でテキトーに設定した( Win7 OPT が割りと文字が薄い(?) ので CRT の設定にした。使ってるの LCD だけど )。

あでも変換前の文字がヤバいんだが Ricty Discard にしたら変換前文字もほどほどになった。

_ [pkgsrc][ricty][フォント]pkgsrc/fonts/ricty-ttf make fail

けなくさんからツッコミを頂いたので[ 20120427#c05 ] pkgsrc/fonts/ricty-ttf をビルドしてみる。

% cd /usr/pkgsrc/fonts/ricty-ttf
% sudo make install clean clean-depends
 :
===> Installing dependencies for ricty-ttf-3.1.3
=> Build dependency fontforge-[0-9]*: found fontforge-20110222nb3
=> Build dependency migu-ttf-20111002: found migu-ttf-20111002
=> Build dependency inconsolata-ttf-[0-9]*: found inconsolata-ttf-20090207
=> Build dependency checkperms>=1.1: found checkperms-1.11
=> Full dependency encodings-[0-9]*: found encodings-1.0.3
=> Full dependency mkfontdir-[0-9]*: found mkfontdir-1.0.6
=> Full dependency mkfontscale-[0-9]*: found mkfontscale-1.0.9nb1
===> Overriding tools for ricty-ttf-3.1.3
===> Extracting for ricty-ttf-3.1.3
===> Patching for ricty-ttf-3.1.3
===> Creating toolchain wrappers for ricty-ttf-3.1.3
===> Building for ricty-ttf-3.1.3
set -e;  cd /usr/pkgsrc/fonts/ricty-ttf/work/yascentur-Ricty-fe68161;  ./ricty_generator.sh  /usr/pkg/lib/X11/fonts/TTF/Inconsolata.otf  /usr/pkg/lib/X11/fonts/TTF/migu-1m-regular.ttf  /usr/pkg/lib/X11/fonts/TTF/migu-1m-bold.ttf
Ricty Generator 3.1.3

Author: Yasunori Yusa <lastname at save dot sys.t.u-tokyo.ac.jp>

This script is for generating ``Ricty'' font from Inconsolata and Migu 1M.
It requires 2-5 minutes to generate Ricty. Owing to SIL Open Font License
Version 1.1 section 5, it is PROHIBITED to distribute the generated font.

Generate modified Inconsolata.
Find /usr/pkg/lib/X11/fonts/TTF/Inconsolata.otf.
Save Modified-Inconsolata-Regular.sfd.
While making Inconsolata bold, wait a moment...
Save Modified-Inconsolata-Bold.sfd.
Generate modified Migu 1M.
Find /usr/pkg/lib/X11/fonts/TTF/migu-1m-regular.ttf.
While scaling migu-1m-regular.ttf, wait a little...
Save Modified-migu-1m-regular.sfd.
Find /usr/pkg/lib/X11/fonts/TTF/migu-1m-bold.ttf.
[1]   Killed                  ${fontforge_cmd}...
Remove temporary files
Abnormal terminated
*** Error code 4

Stop.
make: stopped in /usr/pkgsrc/fonts/ricty-ttf
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/fonts/ricty-ttf

失敗した。

/var/log/message を見る。

Apr 30 19:46:20 mogu /netbsd: UVM: pid 23404 (fontforge), uid 0 killed: out of swap

swap が足りないと言っている。増やしまSHOW

swap を増やす

NetBSD Documentation: Other FAQs and HOWTOs - Memory/Swap Configuration

% sysctl -w vm.anonmax=100

などとしてみたけど変わらず同じ現象になる。

正攻法として swap を追加してみる。

現在 128 MB ある。けっこう少ない

% swapctl -lh
Device      Size     Used    Avail Capacity  Priority
/dev/wd0b   128M      87M      42M    68%    0

参考として ricty の生成が成功した ubuntu の swap はどうなっているか。894 MB ある。

% free -m
             total       used       free     shared    buffers     cached
Mem:           496        352        143          0          5        188
-/+ buffers/cache:        158        338
Swap:          894        188        705

ざっくりと 1 GB くらい作ってみる。

% dd if=/dev/zero bs=1m count=1024 of=/home/swap
% chmod 600 /home/swap
% swapctl -a -p 1 /home/swap

確認

% swapctl -lh
Device      Size     Used    Avail Capacity  Priority
/dev/wd0b   128M      87M      42M    68%    0
/home/swap  1.0G       0B     1.0G     0%    1
Total       1.1G      87M     1.0G     8%

これでイケるだろ。

再度 make したらさらに怒られた。

Apr 30 20:48:29 mogu /netbsd: uid 0, pid 23140, command fontforge, on /: file system full

( ̄ω ̄;)

% df -h
Filesystem        Size       Used      Avail %Cap Mounted on
/dev/wd0a         528M       527M       -26M 105% /
/dev/wd0f         9.8G        87M       9.3G   0% /var
/dev/wd0e          20G       6.0G        13G  31% /usr
/dev/wd0g          19G       9.0G       9.0G  50% /home
kernfs            1.0K       1.0K         0B 100% /kern
ptyfs             1.0K       1.0K         0B 100% /dev/pts
procfs            4.0K       4.0K         0B 100% /proc

なにがあるんだ

% cd /
% ll
total 511696
drwxr-xr-x  2 root wheel       512 Nov  7  2010 altroot/
drwxr-xr-x  2 root wheel      1024 Nov  7  2010 bin/
-r--r--r--  1 root wheel     60012 Jul 24  2011 boot
-rw-r--r--  1 root wheel       195 Nov  7  2010 boot.cfg
drwxr-xr-x  2 root wheel       512 Jul 24  2011 cdrom/
drwxr-xr-x  5 root wheel     34816 Jul 24  2011 dev/
drwxr-xr-x 24 root wheel      2048 Apr 30 13:12 etc/
drwxr-xr-x  3 root wheel       512 Apr 30 20:47 home/
dr-xr-xr-x  2 root wheel       512 Apr 30 21:06 kern/
drwxr-xr-x  2 root wheel      1536 Nov  7  2010 lib/
drwxr-xr-x  3 root wheel       512 Nov  7  2010 libdata/
drwxr-xr-x  3 root wheel       512 Nov  7  2010 libexec/
drwxr-xr-x  2 root wheel       512 Nov  7  2010 mnt/
-rwxr-xr-x  1 root wheel  13650931 Dec 26 21:17 netbsd*
-rwxr-xr-x  1 root wheel  11895472 Nov  7  2010 netbsd.old*
dr-xr-xr-x  1 root wheel       512 Apr 30 21:06 proc/
drwxr-xr-x  2 root wheel      3072 Nov  7  2010 rescue/
drwxr-xr-x  7 root wheel       512 Apr 30 14:27 root/
drwxr-xr-x  2 root wheel      2560 Nov  7  2010 sbin/
drwxr-xr-x  3 root wheel       512 Nov  7  2010 stand/
-rw-------  1 root wheel 498073600 Apr 30 20:45 swap       <====
drwxrwxrwt  4 root wheel       512 Apr 30 21:04 tmp/
drwxr-xr-x 22 root wheel       512 Apr 21 20:11 usr/
drwxr-xr-x 25 root wheel       512 Mar 16 20:51 var/

oh!

さっき試しに作った /swap だった。削除する。

% sudo rm -f swap

再度make

% make install

ok

本日のツッコミ(全1件) [ツッコミを入れる]
_ けなく (2012-05-01 10:15)

gmailにwindowsで生成したricty投げました