diff --git a/code/nel/src/gui/ctrl_text_button.cpp b/code/nel/src/gui/ctrl_text_button.cpp index 2fb19a9fc..c292d5473 100644 --- a/code/nel/src/gui/ctrl_text_button.cpp +++ b/code/nel/src/gui/ctrl_text_button.cpp @@ -43,8 +43,8 @@ namespace NLGUI _BmpLeftW= _BmpMiddleW= _BmpRightW= _BmpH= 0; _WMargin= 0; _WMin= 0; - _TextX= -2; - _TextY= -2; + _TextX= 0; + _TextY= 0; _Setuped= false; _ViewText= NULL; _IsViewTextId= false; @@ -602,7 +602,7 @@ namespace NLGUI _WMin= max(_WMin, _BmpLeftW + _BmpMiddleW + _BmpRightW); // TextY - _TextY= -2; + _TextY= 0; prop = (char*) xmlGetProp( cur, (xmlChar*)"text_y" ); if (prop) { diff --git a/code/nel/src/gui/view_text.cpp b/code/nel/src/gui/view_text.cpp index 022347525..8c2ca96d3 100644 --- a/code/nel/src/gui/view_text.cpp +++ b/code/nel/src/gui/view_text.cpp @@ -2718,9 +2718,18 @@ namespace NLGUI TextContext->setOblique (_Oblique); // Letter size - UTextContext::CStringInfo si = TextContext->getStringInfo(ucstring("|")); // for now we can't now that directly from UTextContext - _FontHeight = (uint) si.StringHeight; // + (_Shadow?(_ShadowOutline?2:1):0); - _FontLegHeight = (uint) si.StringLine; // + (_Shadow?(_ShadowOutline?2:1):0); + ucstring chars; + // instead of using the height of "|" that depends on font, + // we're using 2 characters: + // - "_" that should be the character with the lowest part + // - A with an accent for the highest part + chars.fromUtf8("_\xc3\x84"); + + // for now we can't know that directly from UTextContext + UTextContext::CStringInfo si = TextContext->getStringInfo(chars); + // add a padding of 1 pixel else the top will be truncated + _FontHeight = (uint) si.StringHeight+1; + _FontLegHeight = (uint) si.StringLine; // Space width si = TextContext->getStringInfo(ucstring(" ")); diff --git a/code/ryzom/client/data/gamedev/interfaces_v3/login_main.xml b/code/ryzom/client/data/gamedev/interfaces_v3/login_main.xml index f74967f41..d87dfb51b 100644 --- a/code/ryzom/client/data/gamedev/interfaces_v3/login_main.xml +++ b/code/ryzom/client/data/gamedev/interfaces_v3/login_main.xml @@ -41,13 +41,13 @@ - - - - + + @@ -297,7 +297,7 @@ on_enter="leave_modal" options="no_bordure" mouse_pos="false" exit_key_pushed="t - + @@ -626,7 +626,7 @@ on_enter="leave_modal" options="no_bordure" mouse_pos="false" exit_key_pushed="t - + @@ -647,8 +647,8 @@ on_enter="leave_modal" options="no_bordure" mouse_pos="false" exit_key_pushed="t - @@ -656,7 +656,7 @@ on_enter="leave_modal" options="no_bordure" mouse_pos="false" exit_key_pushed="t - - - diff --git a/code/ryzom/client/data/gamedev/interfaces_v3/login_widgets.xml b/code/ryzom/client/data/gamedev/interfaces_v3/login_widgets.xml index 9821bd34a..40f71f24e 100644 --- a/code/ryzom/client/data/gamedev/interfaces_v3/login_widgets.xml +++ b/code/ryzom/client/data/gamedev/interfaces_v3/login_widgets.xml @@ -63,7 +63,7 @@ -