RPG Maker Forums

hello i make research to find way to supporting Arabic language in Windows_msssage, And during the search is what caught my attention.

in rpg_windows.js i found this code

Window_Base.prototype.drawTextEx = function(text, x, y) { if (text) { var textState = { index: 0, x: x, y: y, left: x }; textState.text = this.convertEscapeCharacters(text); textState.height = this.calcTextHeight(textState, false); this.resetFontSettings(); while (textState.index < textState.text.length) { this.processCharacter(textState); } return textState.x - x; } else { return 0; }};Before i dont change anyghing Arabic letters appear correctly and interrelated only in the splash screen.

Window_Base.prototype.drawText = function(text, x, y) { if (text) { var textState = { index: 0, x: x, y: y, left: x }; textState.text = this.convertEscapeCharacters(text); textState.height = this.calcTextHeight(textState, false); this.resetFontSettings(); while (textState.index < textState.text.length) { this.processCharacter(textState); } return textState.x - x; } else { return 0; }};But, after i change code such drawTextEx to drawText, Arabic letters appear unrelated and reversed.

note:Writing in Arabic only supported on the splash screen

1. The question here is, what is the difference between drawtextEx and drawtext ??

2. why after i change drawtextEx to drawtext, Arabic letters appear incorrectly and is not connected to and reversed [img 2] !!??

3. Can writing code that depends on drawtextEx in Windows_msssage , Even connected to the Arabic letters appear correctly?

need help.

more info about Arabic language here

http://forums.rpgmakerweb.com/index.php?/topic/50277-arabic-supporting/

Latest Threads

Latest Posts

Latest Profile Posts

He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!

Forum statistics

Threads
106,036
Messages
1,018,461
Members
137,821
Latest member
Capterson
Top