- Joined
- Mar 28, 2016
- Messages
- 1,623
- Reaction score
- 1,439
- First Language
- French
- Primarily Uses
- RMMV
hellos
The author is Japanese, he can not help me.
Someone can help me with this plugin. DTextPicture.js
I am try using an external font with this plugin.
From what I read in the plugin
You just need add.
Plugin commande after other plugin commande
This seems not work.
Here is my file font.css
@font-face {
font-family: GameFont;
src: url("uonescence 1.ttf");
}
@font-face {
font-family: GameFont2;
src: url("fontshub.ttf");
}
i try with
Here the game interpreter
Game_Interpreter.prototype.pluginCommandDTextPicture = function(command, args) {
switch (getCommandName(command)) {
case 'D_TEXT' :
if (isNaN(args[args.length - 1])) args.push($gameScreen.dTextSize || 28);
var fontSize = getArgNumber(args.pop());
$gameScreen.setDTextPicture(getArgString(connectArgs(args), false), fontSize);
break;
case 'D_TEXT_SETTING':
switch (getCommandName(args[0])) {
case 'ALIGN' :
$gameScreen.dTextAlign = isNaN(args[1]) ?
Game_Interpreter.textAlignMapper[getArgString(args[1], true)] : getArgNumber(args[1], 0, 2);
break;
case 'BG_COLOR' :
$gameScreen.dTextBackColor = getArgString(connectArgs(args, 1));
break;
case 'FONT':
$gameScreen.setFont(getArgString(args[1]));
break;
}
break;
}
};
and gamescreen
Game_Screen.prototype.setFont = function(name) {
if (Graphics.isFontLoaded(name)) {
this.dTextFont = name;
}
};
And here is the part of script that seems to run do.
I do not understand why nothing works.
If you need full plugin here where you can download
http://triacontane.blogspot.ca/2015/12/rpgmv-rpgmv-dtext-1-rpgmv-dtext-dtext.html
tank you for help
The author is Japanese, he can not help me.
Someone can help me with this plugin. DTextPicture.js
I am try using an external font with this plugin.
From what I read in the plugin
You just need add.
Plugin commande after other plugin commande
D_TEXT_SETTING FONT (fontName)
This seems not work.
Here is my file font.css
@font-face {
font-family: GameFont;
src: url("uonescence 1.ttf");
}
@font-face {
font-family: GameFont2;
src: url("fontshub.ttf");
}
i try with
but not workD_TEXT_SETTING FONT GameFont2
Here the game interpreter
Game_Interpreter.prototype.pluginCommandDTextPicture = function(command, args) {
switch (getCommandName(command)) {
case 'D_TEXT' :
if (isNaN(args[args.length - 1])) args.push($gameScreen.dTextSize || 28);
var fontSize = getArgNumber(args.pop());
$gameScreen.setDTextPicture(getArgString(connectArgs(args), false), fontSize);
break;
case 'D_TEXT_SETTING':
switch (getCommandName(args[0])) {
case 'ALIGN' :
$gameScreen.dTextAlign = isNaN(args[1]) ?
Game_Interpreter.textAlignMapper[getArgString(args[1], true)] : getArgNumber(args[1], 0, 2);
break;
case 'BG_COLOR' :
$gameScreen.dTextBackColor = getArgString(connectArgs(args, 1));
break;
case 'FONT':
$gameScreen.setFont(getArgString(args[1]));
break;
}
break;
}
};
and gamescreen
Game_Screen.prototype.setFont = function(name) {
if (Graphics.isFontLoaded(name)) {
this.dTextFont = name;
}
};
And here is the part of script that seems to run do.
I do not understand why nothing works.
If you need full plugin here where you can download
http://triacontane.blogspot.ca/2015/12/rpgmv-rpgmv-dtext-1-rpgmv-dtext-dtext.html
tank you for help
Last edited by a moderator:
