Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d43551f

Browse files
committed
Windows compiler fix
1 parent 7b9550f commit d43551f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/matplotlib/backends/backend_pdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2429,7 +2429,7 @@ def draw_text(self, gc, x, y, s, prop, angle, ismath=False, mtext=None):
24292429
# Then emit all the multibyte characters, one at a time.
24302430
for ft_object, start_x, glyph_idx in multibyte_glyphs:
24312431
self._draw_xobject_glyph(
2432-
ft_object, fontsize,glyph_idx, start_x, 0
2432+
ft_object, fontsize, glyph_idx, start_x, 0
24332433
)
24342434
self.file.output(Op.grestore)
24352435

src/ft2font.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ void FT2Font::clear()
392392
glyph_to_font.clear();
393393
char_to_font.clear();
394394

395-
for (uint i = 0; i < fallbacks.size(); i ++) {
395+
for (unsigned int i = 0; i < fallbacks.size(); i++) {
396396
fallbacks[i]->clear();
397397
}
398398
}
@@ -407,7 +407,7 @@ void FT2Font::set_size(double ptsize, double dpi)
407407
FT_Matrix transform = { 65536 / hinting_factor, 0, 0, 65536 };
408408
FT_Set_Transform(face, &transform, 0);
409409

410-
for (uint i = 0; i < fallbacks.size(); i++) {
410+
for (unsigned int i = 0; i < fallbacks.size(); i++) {
411411
fallbacks[i]->set_size(ptsize, dpi);
412412
}
413413
}
@@ -477,7 +477,7 @@ int FT2Font::get_kerning(FT_UInt left, FT_UInt right, FT_UInt mode, FT_Vector &d
477477
void FT2Font::set_kerning_factor(int factor)
478478
{
479479
kerning_factor = factor;
480-
for (uint i = 0; i < fallbacks.size(); i ++){
480+
for (unsigned int i = 0; i < fallbacks.size(); i ++){
481481
fallbacks[i]->set_kerning_factor(factor);
482482
}
483483
}
@@ -701,7 +701,7 @@ bool FT2Font::load_char_with_fallback(FT2Font *&ft_object_with_glyph,
701701
}
702702

703703
else {
704-
for (uint i = 0; i < fallbacks.size(); ++i) {
704+
for (unsigned int i = 0; i < fallbacks.size(); ++i) {
705705
bool was_found = fallbacks[i]->load_char_with_fallback(
706706
ft_object_with_glyph, final_glyph_index, parent_glyphs, parent_char_to_font,
707707
parent_glyph_to_font, charcode, flags, charcode_error, glyph_error, override);

0 commit comments

Comments
 (0)