Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: right to left language supporrt  (Read 3080 times)

0 Members and 1 Guest are viewing this topic.

pakhpakh64

  • Lurker
  • *
  • Karma: -1
  • Offline Offline
  • Gender: Male
  • Posts: 28
    • View Profile
right to left language supporrt
« on: March 10, 2012, 07:06:40 PM »

hi there WM fans! straight to the point, we need our game to support right-to-left languages. and since WM support *.ttf fonts, I created a .*font file using tahoma.ttf like this:
Code: [Select]
TTFONT

SIZE = 12
    FACE = "Arial"
FILENAME = "fonts\tahoma.ttf"

BOLD = TRUE
ITALIC = FALSE
UNDERLINE = FALSE
STRIKE = FALSE

CHARSET = 1

COLOR { 0 , 255 , 255 }
ALPHA = 255

    LAYER
{
    OFFSET_X = 1
    OFFSET_Y = 1
    COLOR { 0 , 0 , 0 }
    ALPHA = 255
}

LAYER
{
    OFFSET_X = -1
    OFFSET_Y = -1
    COLOR { 0 , 0 , 0 }
    ALPHA = 255  }

LAYER
{
    OFFSET_X = -1
    OFFSET_Y = 1
    COLOR { 0 , 0 , 0 }
    ALPHA = 255
}

LAYER
{
    OFFSET_X = 1
    OFFSET_Y = -1
    COLOR { 0 , 0 , 0 }
    ALPHA = 255
}

LAYER
{
    OFFSET_X = 0
    OFFSET_Y = 0
    COLOR { 255 , 0 , 0 }
    ALPHA = 255
}
}
in project manager I set this as  system font  :P, and also added line in the game.script like this:
Code: [Select]
Game.TextRTL = true;
but the the resulting text (for example when actor talks) is just some wonderful string of characters as below : >:(
Code: [Select]
ÑÇå ãí Ñæãunfortunately I can't read this language ! :'(
any ideas?
Logged

pakhpakh64

  • Lurker
  • *
  • Karma: -1
  • Offline Offline
  • Gender: Male
  • Posts: 28
    • View Profile
Re: right to left language supporrt
« Reply #1 on: March 10, 2012, 07:22:31 PM »

sry, I just forgot to mention that I made *.font file according to WM documentation> Inside a game> User interface layer> Fonts> TrueType fonts.
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: right to left language supporrt
« Reply #2 on: March 11, 2012, 10:04:45 AM »

Try changing the CHARSET line. For Arabic use CHARSET = 16, for Hebrew use CHARSET = 17 (see the docs for the list of allowed values).
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

pakhpakh64

  • Lurker
  • *
  • Karma: -1
  • Offline Offline
  • Gender: Male
  • Posts: 28
    • View Profile
Re: right to left language supporrt
« Reply #3 on: March 11, 2012, 04:39:01 PM »

Tnx, I try it  :o
Logged

pakhpakh64

  • Lurker
  • *
  • Karma: -1
  • Offline Offline
  • Gender: Male
  • Posts: 28
    • View Profile
Re: right to left language supporrt
« Reply #4 on: March 11, 2012, 05:14:07 PM »

it's not working, still it shows the same meaningless string of characters!  :(
when I tried to type the the text in the and copy it in the script
for the string of
Code: WME Script
  1. actor.Talk
I got
Code: [Select]
????? ??????:'(
any ideas ? should I change the default language of my computer? I appreciate any help.
Logged
 

Page created in 0.071 seconds with 25 queries.