idTech4.UI.idDeviceContext.SetFontByScale C# (CSharp) Метод

SetFontByScale() приватный Метод

private SetFontByScale ( float scale ) : void
scale float
Результат void
		private void SetFontByScale(float scale)
		{
			if(scale <= idE.CvarSystem.GetFloat("gui_smallFontLimit"))
			{
				_currentFont = _currentFontFamily.Small;
			}
			else if(scale <= idE.CvarSystem.GetFloat("gui_mediumFontLimit"))
			{
				_currentFont = _currentFontFamily.Medium;
			}
			else
			{
				_currentFont = _currentFontFamily.Large;
			}
		}