mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	Rearranged text
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									209ec9da47
								
							
						
					
					
						commit
						7359af91f0
					
				| 
						 | 
				
			
			@ -430,12 +430,12 @@ class FreeTypeFont:
 | 
			
		|||
        """
 | 
			
		||||
        .. deprecated:: 9.2.0
 | 
			
		||||
 | 
			
		||||
        See :ref:`deprecations <Font size and offset methods>` for more information.
 | 
			
		||||
 | 
			
		||||
        Use :py:meth:`getlength()` to measure the offset of following text with
 | 
			
		||||
        1/64 pixel precision.
 | 
			
		||||
        Use :py:meth:`getbbox()` to get the exact bounding box based on an anchor.
 | 
			
		||||
 | 
			
		||||
        See :ref:`deprecations <Font size and offset methods>` for more information.
 | 
			
		||||
 | 
			
		||||
        Returns width and height (in pixels) of given text if rendered in font with
 | 
			
		||||
        provided direction, features, and language.
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -502,10 +502,10 @@ class FreeTypeFont:
 | 
			
		|||
        """
 | 
			
		||||
        .. deprecated:: 9.2.0
 | 
			
		||||
 | 
			
		||||
        See :ref:`deprecations <Font size and offset methods>` for more information.
 | 
			
		||||
 | 
			
		||||
        Use :py:meth:`.ImageDraw.multiline_textbbox` instead.
 | 
			
		||||
 | 
			
		||||
        See :ref:`deprecations <Font size and offset methods>` for more information.
 | 
			
		||||
 | 
			
		||||
        Returns width and height (in pixels) of given text if rendered in font
 | 
			
		||||
        with provided direction, features, and language, while respecting
 | 
			
		||||
        newline characters.
 | 
			
		||||
| 
						 | 
				
			
			@ -563,10 +563,10 @@ class FreeTypeFont:
 | 
			
		|||
        """
 | 
			
		||||
        .. deprecated:: 9.2.0
 | 
			
		||||
 | 
			
		||||
        See :ref:`deprecations <Font size and offset methods>` for more information.
 | 
			
		||||
 | 
			
		||||
        Use :py:meth:`.getbbox` instead.
 | 
			
		||||
 | 
			
		||||
        See :ref:`deprecations <Font size and offset methods>` for more information.
 | 
			
		||||
 | 
			
		||||
        Returns the offset of given text. This is the gap between the
 | 
			
		||||
        starting coordinate and the first marking. Note that this gap is
 | 
			
		||||
        included in the result of :py:func:`~PIL.ImageFont.FreeTypeFont.getsize`.
 | 
			
		||||
| 
						 | 
				
			
			@ -859,9 +859,9 @@ class TransposedFont:
 | 
			
		|||
        """
 | 
			
		||||
        .. deprecated:: 9.2.0
 | 
			
		||||
 | 
			
		||||
        See :ref:`deprecations <Font size and offset methods>` for more information.
 | 
			
		||||
 | 
			
		||||
        Use :py:meth:`.getbbox` or :py:meth:`.getlength` instead.
 | 
			
		||||
 | 
			
		||||
        See :ref:`deprecations <Font size and offset methods>` for more information.
 | 
			
		||||
        """
 | 
			
		||||
        deprecate("getsize", 10, "getbbox or getlength")
 | 
			
		||||
        with warnings.catch_warnings():
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user