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;
			}
		}