Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Author Topic: big space when editing text in the editor control  (Read 4506 times)

0 Members and 1 Guest are viewing this topic.

SoundGuy

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 196
    • View Profile
big space when editing text in the editor control
« on: May 23, 2009, 11:30:22 PM »

Hey, i found a weird behavior- when the player is entering something in an editor field, and goes backwards to edit it - there's a very strange space (like 5 single spaces) where the cursor should be.

i tried different fonts but that's not it.

any clues as to what's causing it ?

Oded
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: big space when editing text in the editor control
« Reply #1 on: May 25, 2009, 12:07:49 PM »

Make sure you have both normal and selected font assigned. They are both used to measure text width.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

SoundGuy

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 196
    • View Profile
Re: big space when editing text in the editor control
« Reply #2 on: May 25, 2009, 12:12:54 PM »

they are both assigned and same size.
Logged

SoundGuy

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 196
    • View Profile
Re: big space when editing text in the editor control
« Reply #3 on: May 25, 2009, 12:15:10 PM »

also, the more i hit the left arrow key, the larger the space becomes.

Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: big space when editing text in the editor control
« Reply #4 on: May 25, 2009, 12:20:09 PM »

No idea then. You're using: bitmap fonts / truetype fonts, utf-8 string table, non-utf-8 string table?
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

SoundGuy

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 196
    • View Profile
Re: big space when editing text in the editor control
« Reply #5 on: May 28, 2009, 02:32:32 PM »

Truetype
here's the .FONT file:
Code: [Select]
; $EDITOR_PROJECT_ROOT_DIR$ ..\..\

TTFONT
{
  SIZE = 14

FACE= "Comic Sans MS"
;FILENAME = "fonts\KOMIKAH_.ttf"

;  BOLD = FALSE
  ITALIC = FALSE
  UNDERLINE = FALSE
  STRIKE = FALSE

CHARSET = 0

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



Logged

SoundGuy

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 196
    • View Profile
Re: big space when editing text in the editor control
« Reply #6 on: May 28, 2009, 02:54:56 PM »

Logged

SoundGuy

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 196
    • View Profile
Re: big space when editing text in the editor control
« Reply #7 on: June 10, 2009, 03:07:52 PM »

any ideas whatsoever?
can you see if you reproduce this with the same .FONT file ? or should I try and take WME_DEMO_3D and try it there?

Logged

robot

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 38
    • View Profile
Re: big space when editing text in the editor control
« Reply #8 on: April 05, 2010, 05:26:51 PM »

hi there! i have the same problem here, do you have a solution for this problem, soundguy?
or at least a workaround?
Logged

Prote1n

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 45
    • View Profile
Re: big space when editing text in the editor control
« Reply #9 on: April 05, 2010, 05:43:02 PM »

it seems that this problem only occur with TTF font

By the way i've not been able to display a selected font (white letter over black background) ...
Logged
 

Page created in 0.034 seconds with 17 queries.