この文書の現在のバージョンと選択したバージョンの差分を表示します。
次のリビジョン | 前のリビジョン | ||
wiki:unity:asset:ngui:2.7:004 [2014/11/10 08:06] 127.0.0.1 外部編集 |
wiki:unity:asset:ngui:2.7:004 [2015/02/23 12:48] (現在) |
||
---|---|---|---|
ライン 1: | ライン 1: | ||
- | ====== 004 Fontの作成方法 ====== | + | [[http://stepism.sakura.ne.jp/unity/wiki/|Unityはこちらに移動しました。]] |
- | + | ||
- | ===== 概要 ===== | + | |
- | BMFontを使ってBitMap Font を作成してUnityに取り込んでみます。 | + | |
- | + | ||
- | ==== ツールのダウンロード ==== | + | |
- | [[http://www.angelcode.com/products/bmfont/|BMFont - AngelCode.com]]からdownload installer for v1.13 (358KB)をダウンロードします。 | + | |
- | + | ||
- | ==== ビットマップフォントの作成 ==== | + | |
- | {{:wiki:unity:asets:ngui:2.7:bmfont_run.png?200|}} | + | |
- | + | ||
- | メニューのOptions -> Font Settingsから使用するフォントを設定します。 | + | |
- | {{:wiki:unity:asets:ngui:2.7:bmfont_font_option.png?200|}} | + | |
- | + | ||
- | メニューのOptions -> Export Settingsからフォントの出力設定します。 | + | |
- | * Bit depth: 32 | + | |
- | * Presets : White text with alpha | + | |
- | * Textures png - Portable Network Graphicsに変更してOK。 | + | |
- | + | ||
- | {{:wiki:unity:asets:ngui:2.7:bmfont_font_export.png?200|}} | + | |
- | + | ||
- | メニューのEdit -> Select chars from file を選択して使う文字列の入ったテキストファイルを選択します。 | + | |
- | + | ||
- | === sample.txt === | + | |
- | <code>ABCDE</code> | + | |
- | + | ||
- | 選択すると使用文字列が白くなります。この状態でメニューのOptions -> Save bitmap font as... からBitMap Fontを保存します。 | + | |
- | + | ||
- | ==== NGUI Fontの作成 ==== | + | |
- | Unityを起動して、メニューのNGUI -> Font Maker を開きます。 | + | |
- | + | ||
- | {{:wiki:unity:asets:ngui:2.7:bmfont_font_maker.png?200|}} | + | |
- | + | ||
- | Font DataとTextureに作成したBitMap Fontを選択してCreate a Font without an Atlas で作成します。 | + | |
- | + | ||
- | {{:wiki:unity:asets:ngui:2.7:bmfont_font_maked.png?200|}} | + | |
- | + | ||
- | フォントデータが作成されました。 | + |