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

Skip to content

Commit dc748f5

Browse files
aitikguptatacaswell
authored andcommitted
Windows compiler fix
1 parent 982d612 commit dc748f5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/ft2font.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ void FT2Font::clear()
399399
glyph_to_font.clear();
400400
char_to_font.clear();
401401

402-
for (uint i = 0; i < fallbacks.size(); i ++) {
402+
for (unsigned int i = 0; i < fallbacks.size(); i++) {
403403
fallbacks[i]->clear();
404404
}
405405
}
@@ -414,7 +414,7 @@ void FT2Font::set_size(double ptsize, double dpi)
414414
FT_Matrix transform = { 65536 / hinting_factor, 0, 0, 65536 };
415415
FT_Set_Transform(face, &transform, 0);
416416

417-
for (uint i = 0; i < fallbacks.size(); i++) {
417+
for (unsigned int i = 0; i < fallbacks.size(); i++) {
418418
fallbacks[i]->set_size(ptsize, dpi);
419419
}
420420
}
@@ -484,7 +484,7 @@ int FT2Font::get_kerning(FT_UInt left, FT_UInt right, FT_UInt mode, FT_Vector &d
484484
void FT2Font::set_kerning_factor(int factor)
485485
{
486486
kerning_factor = factor;
487-
for (uint i = 0; i < fallbacks.size(); i ++){
487+
for (unsigned int i = 0; i < fallbacks.size(); i ++){
488488
fallbacks[i]->set_kerning_factor(factor);
489489
}
490490
}
@@ -709,7 +709,7 @@ bool FT2Font::load_char_with_fallback(FT2Font *&ft_object_with_glyph,
709709
}
710710

711711
else {
712-
for (uint i = 0; i < fallbacks.size(); ++i) {
712+
for (unsigned int i = 0; i < fallbacks.size(); ++i) {
713713
bool was_found = fallbacks[i]->load_char_with_fallback(
714714
ft_object_with_glyph, final_glyph_index, parent_glyphs, parent_char_to_font,
715715
parent_glyph_to_font, charcode, flags, charcode_error, glyph_error, override);

0 commit comments

Comments
 (0)