D_TEXT_SETTING by Triacontane ($gameScreen.setFont)

Jonforum

Veteran
Veteran
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

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

D_TEXT_SETTING FONT GameFont2
but not work


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:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,859
Messages
1,017,037
Members
137,566
Latest member
Fl0shVS
Top