lib/shapes/Text.py
def fitToHeight(self, height=0.0):
		"""Fits shape to given height maintaining scale.

		@param height: The height to fit to
		"""

		if height <= 0:
			raise ValueError("height must be greater than 0")

		scalingFactor = 1.0 - ((self.height - float(height)) / self.height)
		self.fontsize *= scalingFactor
Fits shape to given height maintaining scale.

		@param height: The height to fit to
		
Fits shape to given height maintaining scale.
Fits shape to given height maintaining scale .
def fitToHeight(self, height=0.0):
		if height <= 0:
			raise ValueError("height must be greater than 0")
		scalingFactor = 1.0 - ((self.height - float(height)) / self.height)
		self.fontsize *= scalingFactor
def fitToHeight ( self , height = 0.0 ) : if height <= 0 : raise ValueError ( "height must be greater than 0" ) scalingFactor = 1.0 - ( ( self . height - float ( height ) ) / self . height ) self . fontsize *= scalingFactor
Fits shape to given height maintaining scale.
Fits shape to given height maintaining scale .
"""Fits shape to given height maintaining scale.

		@param height: The height to fit to
		"""
self
height
The height to fit to
The height to fit to