- Joined
- Aug 17, 2014
- Messages
- 82
- Reaction score
- 7
- First Language
- arabic
- Primarily Uses
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/
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/
Last edited by a moderator:


