mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	fix windows build
This commit is contained in:
		
							parent
							
								
									19929791ee
								
							
						
					
					
						commit
						de8ba933e5
					
				| 
						 | 
					@ -487,6 +487,7 @@ failed:
 | 
				
			||||||
    FT_GlyphSlot glyph;
 | 
					    FT_GlyphSlot glyph;
 | 
				
			||||||
    FT_Bool kerning = FT_HAS_KERNING(self->face);
 | 
					    FT_Bool kerning = FT_HAS_KERNING(self->face);
 | 
				
			||||||
    FT_UInt last_index = 0;
 | 
					    FT_UInt last_index = 0;
 | 
				
			||||||
 | 
					    int i;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (features != Py_None || dir != NULL)
 | 
					    if (features != Py_None || dir != NULL)
 | 
				
			||||||
      PyErr_SetString(PyExc_KeyError, "setting text direction or font features is not supported without libraqm");
 | 
					      PyErr_SetString(PyExc_KeyError, "setting text direction or font features is not supported without libraqm");
 | 
				
			||||||
| 
						 | 
					@ -515,7 +516,6 @@ failed:
 | 
				
			||||||
    load_flags = FT_LOAD_RENDER|FT_LOAD_NO_BITMAP;
 | 
					    load_flags = FT_LOAD_RENDER|FT_LOAD_NO_BITMAP;
 | 
				
			||||||
    if (mask)
 | 
					    if (mask)
 | 
				
			||||||
        load_flags |= FT_LOAD_TARGET_MONO;
 | 
					        load_flags |= FT_LOAD_TARGET_MONO;
 | 
				
			||||||
    int i;
 | 
					 | 
				
			||||||
    for (i = 0; font_getchar(string, i, &ch); i++) {
 | 
					    for (i = 0; font_getchar(string, i, &ch); i++) {
 | 
				
			||||||
        (*glyph_info)[i].index = FT_Get_Char_Index(self->face, ch);
 | 
					        (*glyph_info)[i].index = FT_Get_Char_Index(self->face, ch);
 | 
				
			||||||
        error = FT_Load_Glyph(self->face, (*glyph_info)[i].index, load_flags);
 | 
					        error = FT_Load_Glyph(self->face, (*glyph_info)[i].index, load_flags);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user