rem: tPtr->offsetWidth = (tPtr->view->size.height - WMFontHeight(tPtr->view->screen->normalFont))/2;
add: tPtr->offsetWidth = WMAX((tPtr->view->size.height - WMFontHeight(tPtr->font))/2, 1);
context: WMCreateTextField(WMWidget *parent){    TextField *tPtr;        tPtr = wmalloc(sizeof(TextField));    memset(tPtr, 0, sizeof(TextField));    tPtr->widgetClass = WC_TextField;        tPtr->view = W_CreateView(W_VIEW(parent));    if (!tPtr->view) {	free(tPtr);	return NULL;    }    tPtr->view->self = tPtr;        tPtr->view->attribFlags |= CWCursor;    tPtr->view->attribs.cursor = tPtr->view->screen->textCursor;        W_SetViewBackgroundColor(tPtr->view, tPtr->view->screen->white);        tPtr->text = wmalloc(MIN_TEXT_BUFFER);    tPtr->text[0] = 0;    tPtr->textLen = 0;    tPtr->bufferSize = MIN_TEXT_BUFFER;        tPtr->flags.enabled = 1;        WMCreateEventHandler(tPtr->view, ExposureMask|StructureNotifyMask			 |FocusChangeMask, handleEvents, tPtr);    W_ResizeView(tPtr->view, DEFAULT_WIDTH, DEFAULT_HEIGHT);    WMSetTextFieldBordered(tPtr, DEFAULT_BORDERED);    tPtr->flags.alignment = DEFAULT_ALIGNMENT;    tPtr->offsetWidth = (tPtr->view->size.height			 - WMFontHeight(tPtr->view->screen->normalFont))/2;    WMCreateEventHandler(tPtr->view, EnterWindowMask|LeaveWindowMask			 |ButtonPressMask|KeyPressMask|Button1MotionMask,			 handleTextFieldActionEvents, tPtr);    tPtr->flags.cursorOn = 1;        return tPtr;}