Wintermute Engine Forum
Wintermute Engine => Technical forum => Topic started by: SoundGuy 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
-
Make sure you have both normal and selected font assigned. They are both used to measure text width.
-
they are both assigned and same size.
-
also, the more i hit the left arrow key, the larger the space becomes.
-
No idea then. You're using: bitmap fonts / truetype fonts, utf-8 string table, non-utf-8 string table?
-
Truetype
here's the .FONT file:
; $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
}
}
-
(http://corbomitegames.com/spacebug.jpg)
-
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?
-
hi there! i have the same problem here, do you have a solution for this problem, soundguy?
or at least a workaround?
-
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) ...