[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[plamo:26774] Re: fontconfig
-
From:Shun-ichi TAHARA (田原 俊一)
-
Date:Tue, 24 Jan 2006 16:41:36 +0900 (JST)
- Subject: [plamo:26774] Re: fontconfig
- From: Shun-ichi TAHARA (田原 俊一) <jado@xxxxxxxxxxxxxxx>
- Date: Tue, 24 Jan 2006 16:41:35 +0900 (JST)
From: KATOH Yasufumi <karma@jazz.email.ne.jp>
Message-Id: <87slreccvv.wl%karma@jazz.email.ne.jp>
> > fontconfig は、style=Regular (or Bold) なフォントの存在を仮定している
> > フシがあります。
>
> ほほぅ.
でもって、Regular なフォントの weight は、medium (80) くらいのようです。
> "dshirkg3.ttc" 0
> "HiraginoKaku:style=W3:slant=0:weight=80:width=100:index=0
> :outline=True:scalable=True:charset=...(続く)
> :
> "dshirkg3.ttc" 1 "HiraginoKaku:style=W3 mono:slant=0:weight=80:width=100:index=1
> :outline=True:scalable=True:charset=... (続く)
> みたいになっていますね.
あとは、W5 と W7 がどんな weight になってるかが鍵ですね。
> > これがわかれば、.fonts.conf でプロパティを差し換えるようにすれば、望み
> > の結果が得られるとは思います。
>
> <edit> とか使って,値を置き換えたりするんですか?
そうですそうです。
<match target="font">
<test name="family" compare="eq">
<string>HiraginoKaku</string>
</test>
<test name="weight" compare="eq">
<const>medium</const>
</test>
<edit name="style" mode="assign">
<const>regular</const>
</edit>
</match>
<match target="font">
<test name="family" compare="eq">
<string>HiraginoKaku</string>
</test>
<test name="weight" compare="eq">
<const>bold</const>
</test>
<edit name="style" mode="assign">
<const>bold</const>
</edit>
</match>
例えばこんなふうに(きちんと動くかはわかりません。多分これだと italic
を要求した際には期待したフォントを持ってきてくれない可能性が高いです)。
_______________________________
田原 俊一 jado@flowernet.gr.jp, shunichi_tahara@zenrin.co.jp
http://flowernet.gr.jp/jado/
FingerPrint: 16 9E 70 3B 05 86 5D 08 B8 4C 47 3A E7 E9 8E D9
 ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄
- Follow-Ups
-
- [plamo:26775] Re: fontconfig, KATOH Yasufumi
- References
-
- [plamo:26770] fontconfig, KATOH Yasufumi
- [plamo:26771] Re: fontconfig, Shun-ichi TAHARA (田原 俊一)
- [plamo:26772] Re: fontconfig, KATOH Yasufumi
[検索ページ]
[メール一覧]
Plamo ML 公開システム