[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[plamo:26781] Re: fontconfig



From: KATOH Yasufumi <karma@jazz.email.ne.jp>
Message-Id: <871wyxt1en.wl%karma@jazz.email.ne.jp>

> 時間を見付けて,もう少し格闘してみます.

元の設定では、ダイアログでフォントの一覧を取得する際に、
style=W5→weight=bold および style=W7→weight=black の置き換えをかけて
るだけで、実際に weight=bold なフォントが要求されても、そのような
weight を持っているフォントが存在しないので、medium roman に fallback
がかかるのかな。

http://www.kde.gr.jp/~akito/patch/fcpackage/Install-ja.txt

とか、

man fontconfig

とかに結構ヒントがありますが、↓これだとどうでしょう?

# もしかしたら、元([plamo:26778])の設定も併せて突っ込まないと、ダイア
# ログで bold が選べないかも知れません

----
	<match target="font">
		<test name="family">
			<string>HiraginoKaku</string>
		</test>
		<test target="pattern" name="weight" compare="more">
			<const>medium</const>
		</test>
		<test target="pattern" name="weight" compare="less_eq">
			<const>bold</const>
		</test>
		<edit name="style" mode="assign">
			<const>W5</const>
		</edit>
		<edit name="weight" mode="assign">
			<const>medium</const>
		</edit>
	</match>
	<match target="font">
		<test name="family">
			<string>HiraginoKaku</string>
		</test>
		<test target="pattern" name="weight" compare="more">
			<const>bold</const>
		</test>
		<edit name="style" mode="assign">
			<const>W7</const>
		</edit>
		<edit name="weight" mode="assign">
			<const>medium</const>
		</edit>
	</match>
----

Follow-Ups
[plamo:26782] Re: fontconfig, KATOH Yasufumi
References
[plamo:26778] Re: fontconfig, KATOH Yasufumi
[plamo:26779] Re: fontconfig, Shun-ichi TAHARA (田原 俊一)
[plamo:26780] Re: fontconfig, KATOH Yasufumi

[検索ページ] [メール一覧]
Plamo ML 公開システム