フォントを日本語フォントに入れ替える

日本語化するためにはまずゲーム内で日本語を表示できるようにしなければいけません、
手順としては
フォントを入手

フォントの拡張子を変更

フォントをフォルダ内に入れる

フォントの設定を変更する

フォントを入手

洒落たフォントを使いたかったのですが、欲を出さずにwindowsフォルダ内に有るMSゴシック体(msgothic.ttf)を引っ張り出して、
C:\Program Files\Steam\SteamApps\common\hegemony philip of macedon\Resources\Fonts
内に入れました。

フォントの拡張子を変更

msgothic.ttfをフォルダにぶち込みたいところですが、プログラムが.pfbと.afmの拡張子を使用しているので、
http://www.henkan-muryo.com/convert-font.phpで拡張子を変更しました。

フォントをフォルダ内に入れる

C:\Program Files\Steam\SteamApps\common\hegemony philip of macedon\Resources\Fonts
内にmsgothic.pfb、msgothic.afmを入れました。

フォントの設定を変更する

このままではプログラムが日本語フォントを使ってくれないので、使うよう調教する必要がありました。
C:\Program Files\Steam\SteamApps\common\hegemony philip of macedon\Resources\Fonts
内にあるfontregistry.xntの、
<fontregistry>
<family>
	<name>Lithos</name>
	<face>
		<style>Regular</style>
		<file>Resources/Fonts/Ethos-Regular.pfb|afm</file>
	</face>
	<face>
		<style>Bold</style>
		<file>Resources/Fonts/Ethos-Regular.pfb|afm</file>
		<embolden>0.05</embolden>
	</face>
	<face>
		<style>Italic</style>
		<file>Resources/Fonts/Ethos-Regular.pfb|afm</file>
		<transform><xy>0.2</xy></transform>
	</face>
	<face>
		<style>BoldItalic</style>
		<file>Resources/Fonts/Ethos-Regular.pfb|afm</file>
		<embolden>0.05</embolden>
		<transform><xy>0.2</xy></transform>
	</face>
</family>
<family>
	<name>Day Roman</name>
	<face>
		<style>Regular</style>
		<file>Resources/Fonts/DAYROM__.pfb|afm</file>
	</face>
	<face>
		<style>Bold</style>
		<file>Resources/Fonts/DAYROM__.pfb|afm</file>
		<embolden>0.05</embolden>
	</face>
	<face>
		<style>Italic</style>
		<file>Resources/Fonts/DAYROM__.pfb|afm</file>
		<transform><xy>0.2</xy></transform>
	</face>
	<face>
		<style>BoldItalic</style>
		<file>Resources/Fonts/DAYROM__.pfb|afm</file>
		<embolden>0.05</embolden>
		<transform><xy>0.2</xy></transform>
	</face>
</family>


		<file>Resources/Fonts/msgothic.pfb|afm</file>
	</face>
	<face>
		<style>Bold</style>
		<file>Resources/Fonts/msgothic.pfb|afm</file>
		<embolden>0.05</embolden>
	</face>
	<face>
		<style>Italic</style>
		<file>Resources/Fonts/msgothic.pfb|afm</file>
		<transform><xy>0.2</xy></transform>
	</face>
	<face>
		<style>BoldItalic</style>
		<file>Resources/Fonts/msgothic.pfb|afm</file>
		<embolden>0.05</embolden>
		<transform><xy>0.2</xy></transform>
	</face>
</family>
<family>
	<name>Day Roman</name>
	<face>
		<style>Regular</style>
		<file>Resources/Fonts/msgothic.pfb|afm</file>
	</face>
	<face>
		<style>Bold</style>
		<file>Resources/Fonts/msgothic.pfb|afm</file>
		<embolden>0.05</embolden>
	</face>
	<face>
		<style>Italic</style>
		<file>Resources/Fonts/msgothic.pfb|afm</file>
		<transform><xy>0.2</xy></transform>
	</face>
	<face>
		<style>BoldItalic</style>
		<file>Resources/Fonts/msgothic.pfb|afm</file>
		<embolden>0.05</embolden>
		<transform><xy>0.2</xy></transform>
	</face>
</family>
に変更しました。

Ethos-Regular.pfb、DAYROM__.pfbの所を

msgothic.pfbに入れ替えただけです。


あとは翻訳するだけ!

あとはlanguage.ltx内の物を翻訳するだけです。

タグ:

+ タグ編集
  • タグ:

このサイトはreCAPTCHAによって保護されており、Googleの プライバシーポリシー利用規約 が適用されます。

最終更新:2011年01月07日 15:55