Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 86878c8

Browse filesBrowse files
committed
Windows compiler fix
1 parent 471ae8c commit 86878c8
Copy full SHA for 86878c8

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed

‎src/ft2font.cpp

Copy file name to clipboardExpand all lines: src/ft2font.cpp
+4-4Lines 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
}
@@ -702,7 +702,7 @@ bool FT2Font::load_char_with_fallback(FT2Font *&ft_object_with_glyph,
702702
}
703703

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.