新しいフォントで指定のフォントを置き換えます
font_replace(ind, name, size, bold, italic, first, last);
この関数はゲームを実行するシステムに存在するフォントを使用して、既存のフォントリソースを置き換えます。 新しいフォントは、フォントサイズやボールド、イタリックの有無、フォントとして使用する文字コード(UTF-8)を指定する必要があります。
この関数はHTML5のみ動作します。 またフォントは標準のものに制限する必要があります。
Windows Font Name | Mac Font Name | Font Family |
Arial | Arial / Helvetica | sans-serif |
Arial Black | Arial Black / Gadget | sans-serif |
Comic Sans MS | Comic Sans MS | cursive |
Courier New | Courier New | monospaced |
Georgia | Georgia | serif |
Impact | Impact / Charcoal | sans-serif |
Lucida Console | Monaco | monospaced |
Lucida Sans Unicode | Lucida Grande | sans-serif |
Palatino Linotype / Book Antiqua | Palatino | serif |
Tahoma | Geneva | sans-serif |
Times New Roman | Times New Roman / Times | serif |
Trebuchet MS | Trebuchet MS | sans-serif |
Verdana | Verdana / Geneva | sans-serif |
Georgia | Georgia | serif |
Symbol | Symbol | N/A |
Webdings | Webdings | N/A |
Wingdings | Zapf Dingbats | N/A |
MS Sans Serif | Geneva | sans-serif |
MS Serif | New York | sans-serif |
font_replace(fnt_Custom, 'Arial', 24, true, true, 32, 128);
フォントリソース"fnt_Custom"をArialの24ポイント、ボールド有効、イタリック有効、文字コード32〜128のものに置き換えます。