lua/wrappers/gfx/lua_font.cpp
/**
	 * Measures the space in pixels that the given line of text would take up when contained
	 * to the given width. Essentially calls measure text with the end character being a new line.
	 *
	 * @param string text The text to measure.
	 * @param number contain_width The width of the container.
	 * @returns number The width that would be taken up.
	 * @returns number The height that would be taken up.
	 */
Measures the space in pixels that the given line of text would take up when contained
to the given width. Essentially calls measure text with the end character being a new line.

@param string text The text to measure.
@param number contain_width The width of the container.
@returns number The width that would be taken up.
@returns number The height that would be taken up.
Measures the space in pixels that the given line of text would take up when contained to the given width . Essentially calls measure text with the end character being a new line . @param string text The text to measure . @param number contain_width The width of the container . @returns number The width that would be taken up . @returns number The height that would be taken up .
int Font_measure_line(lua_State *lua)
	{
		Font *font = castUData<Font>(lua, 1);
		if (font)
		{
			if (lua_isnum(lua, 2))
			{
				float width = 0.0f, height = 0.0f;
				font->measureLine(lua_tostring(lua, 2), lua_tonumber(lua, 3), width, height);
				lua_pushnumber(lua, width);
				lua_pushnumber(lua, height);
				return 2;
			}
			return LuaState::expectedArgs(lua, "measure_line", "string text, number container_width");
		}
		return LuaState::expectedContext(lua, "measure_line", "am.font");
	}
int Font_measure_line ( lua_State * lua ) { Font * font = castUData < Font > ( lua , 1 ) ; if ( font ) { if ( lua_isnum ( lua , 2 ) ) { float width = 0.0f , height = 0.0f ; font -> measureLine ( lua_tostring ( lua , 2 ) , lua_tonumber ( lua , 3 ) , width , height ) ; lua_pushnumber ( lua , width ) ; lua_pushnumber ( lua , height ) ; return 2 ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Measures the space in pixels that the given line of text would take up when contained
 to the given width.
Measures the space in pixels that the given line of text would take up when contained to the given width .