mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 09:57:43 +03:00 
			
		
		
		
	Corrected writing I;16 text
This commit is contained in:
		
							parent
							
								
									5e2332a200
								
							
						
					
					
						commit
						ba9c830b03
					
				| 
						 | 
				
			
			@ -141,7 +141,9 @@ def test_I16(font):
 | 
			
		|||
    draw = ImageDraw.Draw(im)
 | 
			
		||||
 | 
			
		||||
    txt = "Hello World!"
 | 
			
		||||
    draw.text((10, 10), txt, font=font)
 | 
			
		||||
    draw.text((10, 10), txt, fill=0xFFFE, font=font)
 | 
			
		||||
 | 
			
		||||
    assert im.getpixel((12, 14)) == 0xFFFE
 | 
			
		||||
 | 
			
		||||
    target = "Tests/images/transparent_background_text_L.png"
 | 
			
		||||
    assert_image_similar_tofile(im.convert("L"), target, 0.01)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -425,7 +425,7 @@ fill_mask_L(
 | 
			
		|||
                *out = BLEND(*mask, *out, ink[0], tmp1);
 | 
			
		||||
                if (strncmp(imOut->mode, "I;16", 4) == 0) {
 | 
			
		||||
                    out++;
 | 
			
		||||
                    *out = BLEND(*mask, *out, ink[0], tmp1);
 | 
			
		||||
                    *out = BLEND(*mask, *out, ink[1], tmp1);
 | 
			
		||||
                }
 | 
			
		||||
                out++, mask++;
 | 
			
		||||
            }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user