vine-users ML アーカイブ



[vine-users:073725] IPA フォン トの利用(ipa.ttfco nf ver. 0.1)

  • From: FUKUHARA Makoto <makoto@xxxxxxxxxxxxxxxxxx>
  • Subject: [vine-users:073725] IPA フォン トの利用(ipa.ttfco nf ver. 0.1)
  • Date: Wed, 04 Jan 2006 23:30:30 +0900
福原です.

IPA フォントを Vine 3.2 で使うための ipa.ttfconf を作成してみました.
このメールに添付してあります

[1] IPA フォントの入手

OPFC (OpenPrinting Framework Consortium) プロジェクト
https://sourceforge.jp/projects/opfc/

ここの ModuleHP の download のリンクから
  opfc-ModuleHP-1.1.1_withIPAFonts.tar.gz   9.7 MB
をダウンロード.

# GRASS国際化版よりもサイズが小さいです.

[2] フォントのインストール

( ipag.ttf ipagp.ttf ipagui.ttf ipam.ttf ipamp.ttf と ipa.ttfconf を
  /usr/X11R6/lib/X11/fonts/TrueType/ にコピーしてから )

# cd /usr/X11R6/lib/X11/fonts/TrueType/
# mktcapdir . *.ttfconf
# /etc/rc.d/init.d/xfs reload

[3] テスト

$ xdvi /usr/share/doc/tetex-macros-2.0/jsclasses/jsclasses.dvi
$ ggv /usr/share/ghostscript/7.07/vflib/article9.ps
$ mozilla file:///usr/share/doc/Vine/index.html

( このほかに OpenOffice.org 2.0 でも確認しました.)

[A] 参考にしたもの

  * ricohlx.ttfconf
      http://vinelinux.org/errata/3x/20051102-1.html
      http://updates.vinelinux.org/ftp/Vine-3.2/updates/misc/ricohlx.ttfconf

  * [ja-dev] IPAフォント日本語フォント関連
      http://search.luky.org/oo/ja-dev.2003/msg02621.html
      ( XLFD は,これに合わせてあります.ftdumpxlfd ipa*.ttf の結果を
        見ても,問題ないように思えます.)

-- 
  福原 <makoto@xxxxxxxxxxxxxxxxxx>
# ipa.ttfconf ver. 0.1  2006/01/04
#
###############################################################################
# delimiter: TAB
##########################################################
# Entry format:
#-----------------------------------------------------------------------
#<foundry>	<family>	<charset1>[,<charset2>]	<prop|cell|mono>
#	<filename for Medium Roman>	[<additional ttcap>]
#	<filename for Bold   Roman>	[<additional ttcap>]
#	<filename for Medium Italic>	[<additional ttcap>]
#	<filename for Bold   Italic>	[<additional ttcap>]
#-----------------------------------------------------------------------
# * (<filename for *>) makes ttcap entry automatically.
# * --                 makes no entry.
#
##########################################################
# Alias format:
#-----------------------------------------------------------------------
#alias	<NAME for alias>	<NAME for entity>	<priority(digit)>
#-----------------------------------------------------------------------
# NAME : <foundry>-<family>-<charset>-<encoding>
#
##########################################################
# TTCAP:
# fn=<face number:int>
# ai=<slant rate:real>
# fp=[yn] font metric calicurate (this is obsolete? -> fs)
# fs=[pmc] force spacing
# bw=<width rate:real> this opt is valid for fixed fonts
# ds=[yn] double striking (pseudo bold) ab is obsoletes
# vl=[yn] very lazy method to caliculate metrics
# eo=<code conversion module name:string>
# hi=[yn] hinting
# cr=Range[,Range,..] Range = a|a-b|-b|a- : restrict code range : use for unicode fonts
# eb=[yn] use embedded bitpmas (and bs is needed) : not recommended with vl,eb
# bs=<real> embedded bitmap bounding box width rate

######################################################################
# IPA TrueType Font
#   based on ricohlx.ttfconf

##########################################################
# IPA-Mincho, IPA-P-Mincho

ipa	IPAMincho	iso8859-1,jisx0201.1976-0	cell
	ipam.ttf	bw=0.5
	(ipam.ttf)	bw=0.5
	(ipam.ttf)	bw=0.5
	(ipam.ttf)	bw=0.5

ipa	IPAMincho	jisx0208.1983-0	cell
	ipam.ttf
	(ipam.ttf)
	(ipam.ttf)
	(ipam.ttf)

ipa	IPAPMincho	iso8859-1,jisx0201.1976-0	prop
	ipamp.ttf	fn=1:eb=y:hi=y:bs=1.7
	(ipamp.ttf)	fn=1:eb=y:hi=y:bs=1.7:bw=1.05
	(ipamp.ttf)	fn=1:eb=y:hi=y:bs=1.7
	(ipamp.ttf)	fn=1:eb=y:hi=y:bs=1.7:bw=1.05

ipa	IPAPMincho	jisx0208.1983-0	prop
	ipamp.ttf	vl=y:fn=1:eb=y:hi=y:bs=1.7
	(ipamp.ttf)	vl=y:fn=1:eb=y:hi=y:bs=1.7:bw=1.05
	(ipamp.ttf)	vl=y:fn=1:eb=y:hi=y:bs=1.7
	(ipamp.ttf)	vl=y:fn=1:eb=y:hi=y:bs=1.7:bw=1.05

ipa	IPAPMincho	iso10646-1	prop
	ipamp.ttf	vl=y:fn=1:eb=y:hi=y:bs=1.7
	(ipamp.ttf)	vl=y:fn=1:eb=y:hi=y:bs=1.7:bw=1.05
	(ipamp.ttf)	vl=y:fn=1:eb=y:hi=y:bs=1.7
	(ipamp.ttf)	vl=y:fn=1:eb=y:hi=y:bs=1.7:bw=1.05


##########################################################
# IPA-Gothic, IPA-P-Gothic

ipa	IPAGothic	iso8859-1,jisx0201.1976-0	cell
	ipag.ttf	eb=y:hi=y:bw=0.5
	(ipag.ttf)	eb=y:hi=y:bw=0.5
	(ipag.ttf)	eb=y:hi=y:bw=0.5
	(ipag.ttf)	eb=y:hi=y:bw=0.5

ipa	IPAGothic	jisx0208.1983-0	cell
	ipag.ttf	eb=y:hi=y
	(ipag.ttf)	eb=y:hi=y
	(ipag.ttf)	eb=y:hi=y
	(ipag.ttf)	eb=y:hi=y

ipa	IPAGothic	iso10646-1	cell
	ipag.ttf	vl=y:eb=y:hi=y
	(ipag.ttf)	vl=y:eb=y:hi=y
	(ipag.ttf)	vl=y:eb=y:hi=y
	(ipag.ttf)	vl=y:eb=y:hi=y

ipa	IPAPGothic	iso8859-1,jisx0201.1976-0	prop
	ipagp.ttf	fn=1:eb=y:hi=y:bs=1.7
	(ipagp.ttf)	fn=1:eb=y:hi=y:bs=1.7:bw=1.05
	(ipagp.ttf)	fn=1:eb=y:hi=y:bs=1.7
	(ipagp.ttf)	fn=1:eb=y:hi=y:bs=1.7:bw=1.05

ipa	IPAPGothic	jisx0208.1983-0	prop
	ipagp.ttf	vl=y:fn=1:eb=y:hi=y:bs=1.7
	(ipagp.ttf)	vl=y:fn=1:eb=y:hi=y:bs=1.7:bw=1.05
	(ipagp.ttf)	vl=y:fn=1:eb=y:hi=y:bs=1.7
	(ipagp.ttf)	vl=y:fn=1:eb=y:hi=y:bs=1.7:bw=1.05

ipa	IPAPGothic	iso10646-1	prop
	ipagp.ttf	vl=y:fn=1:eb=y:hi=y:bs=1.7
	(ipagp.ttf)	vl=y:fn=1:eb=y:hi=y:bs=1.7:bw=1.05
	(ipagp.ttf)	vl=y:fn=1:eb=y:hi=y:bs=1.7
	(ipagp.ttf)	vl=y:fn=1:eb=y:hi=y:bs=1.7:bw=1.05

##########################################################
# IPA-Gothic-UI

ipa	IPAUIGothic	iso8859-1,jisx0201.1976-0	cell
	ipagothui.ttf	eb=y:hi=y:bw=0.5
	(ipagothui.ttf)	eb=y:hi=y:bw=0.5
	(ipagothui.ttf)	eb=y:hi=y:bw=0.5
	(ipagothui.ttf)	eb=y:hi=y:bw=0.5

ipa	IPAUIGothic	jisx0208.1983-0	cell
	ipagothui.ttf	eb=y:hi=y
	(ipagothui.ttf)	eb=y:hi=y
	(ipagothui.ttf)	eb=y:hi=y
	(ipagothui.ttf)	eb=y:hi=y

ipa	IPAUIGothic	iso10646-1	cell
	ipagothui.ttf	vl=y:eb=y:hi=y
	(ipagothui.ttf)	vl=y:eb=y:hi=y
	(ipagothui.ttf)	vl=y:eb=y:hi=y
	(ipagothui.ttf)	vl=y:eb=y:hi=y

##########################################################
# fixed
#

ipa	fixed	iso8859-1,jisx0201.1976-0	cell
	ipag.ttf	bw=0.5
	(ipag.ttf)	bw=0.5
	(ipag.ttf)	bw=0.5
	(ipag.ttf)	bw=0.5

ipa	fixed	jisx0208.1983-0	cell
	ipag.ttf
	(ipag.ttf)
	(ipag.ttf)
	(ipag.ttf)

##########################################################
# ALIASES

alias	alias-gothic-c-iso8859-1	ipa-IPAGothic-iso8859-1	15
alias	alias-gothic-c-jisx0201.1976-0	ipa-IPAGothic-jisx0201.1976-0	15
alias	alias-gothic-c-jisx0208.1983-0	ipa-IPAGothic-jisx0208.1983-0	15

alias	alias-gothic-p-iso8859-1	ipa-IPAPGothic-iso8859-1	15
alias	alias-gothic-p-jisx0201.1976-0	ipa-IPAPGothic-jisx0201.1976-0	15
alias	alias-gothic-p-jisx0208.1983-0	ipa-IPAPGothic-jisx0208.1983-0	15

alias	alias-mincho-c-iso8859-1	ipa-IPAMincho-iso8859-1	15
alias	alias-mincho-c-jisx0201.1976-0	ipa-IPAMincho-jisx0201.1976-0	15
alias	alias-mincho-c-jisx0208.1983-0	ipa-IPAMincho-jisx0208.1983-0	15

alias	alias-mincho-p-iso8859-1	ipa-IPAPMincho-iso8859-1	15
alias	alias-mincho-p-jisx0201.1976-0	ipa-IPAPMincho-jisx0201.1976-0	15
alias	alias-mincho-p-jisx0208.1983-0	ipa-IPAPMincho-jisx0208.1983-0	15

alias	alias-fixed-c-iso8859-1	ipa-fixed-iso8859-1	15
alias	alias-fixed-c-jisx0201.1976-0	ipa-fixed-jisx0201.1976-0	15
alias	alias-fixed-c-jisx0208.1983-0	ipa-fixed-jisx0208.1983-0	15

alias	misc-fixed-c-iso8859-1	ipa-fixed-iso8859-1	15
alias	misc-fixed-c-jisx0201.1976-0	ipa-fixed-jisx0201.1976-0	15
alias	misc-fixed-c-jisx0208.1983-0	ipa-fixed-jisx0208.1983-0	15

alias	alias-serif-p-iso8859-1	ipa-IPAPMincho-iso8859-1	15
alias	alias-serif-p-jisx0201.1976-0	ipa-IPAPMincho-jisx0201.1976-0	15
alias	alias-serif-p-jisx0208.1983-0	ipa-IPAPMincho-jisx0208.1983-0	15

alias	alias-sans-p-iso8859-1	ipa-IPAPGothic-iso8859-1	15
alias	alias-sans-p-jisx0201.1976-0	ipa-IPAPGothic-jisx0201.1976-0	15
alias	alias-sans-p-jisx0208.1983-0	ipa-IPAPGothic-jisx0208.1983-0	15

alias	alias-monospace-m-iso8859-1	ipa-IPAGothic-iso8859-1	15
alias	alias-monospace-m-jisx0201.1976-0	ipa-IPAGothic-jisx0201.1976-0	15
alias	alias-monospace-m-jisx0208.1983-0	ipa-IPAGothic-jisx0208.1983-0	15