Use git FT for compilation include path
This commit is contained in:
parent
dd11684f96
commit
b67422bf4a
|
@ -1,5 +1,5 @@
|
||||||
Compile with current ft folder:
|
Compile with current ft folder:
|
||||||
gcc main.c bitmap.c murmur3.c -Wall -I /usr/local/include/freetype2/ -lfreetype -ldl -lpng -lm -o main
|
gcc main.c bitmap.c murmur3.c -Wall -I ../../include/ -ldl -lpng -lm -o main
|
||||||
|
|
||||||
Run
|
Run
|
||||||
./main <base libfreetype.so> <test libfreetype.so> <size> <font file>
|
./main <base libfreetype.so> <test libfreetype.so> <size> <font file>
|
||||||
|
|
|
@ -191,7 +191,8 @@ void render(const char* ft_dir, const char* font, FT_UInt32 size, int mode, stru
|
||||||
*entries_len = *entries_len * 2;
|
*entries_len = *entries_len * 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
(*entries)[i].difference = 0.0; // initially assume no difference between glyphs
|
// initially assume no difference between glyphs
|
||||||
|
(*entries)[i].difference = 0.0;
|
||||||
|
|
||||||
// if hashes are the same, move to the next glyph
|
// if hashes are the same, move to the next glyph
|
||||||
if (((mode == 2) || (mode == 3)) &&
|
if (((mode == 2) || (mode == 3)) &&
|
||||||
|
|
Loading…
Reference in New Issue