2017-08-24 13:08:34 +02:00
|
|
|
rm -rf ./html/pages
|
|
|
|
rm -f ./html/top.html
|
|
|
|
#####################################################################
|
2017-08-26 00:45:33 +02:00
|
|
|
FT_TEST_DPI=${FT_TEST_DPI:-72 96};
|
|
|
|
FT_TEST_FONT_FILE=${FT_TEST_FONT_FILE:-test.ttf};
|
|
|
|
FT_TEST_RENDER_MODE=${FT_TEST_RENDER_MODE:-1 2};
|
|
|
|
FT_TEST_PT_SIZE=${FT_TEST_PT_SIZE:-16 20};
|
|
|
|
|
|
|
|
FT_TEST_BASE_DIR=${FT_TEST_BASE_DIR:-$HOME/base};
|
|
|
|
FT_TEST_TEST_DIR=${FT_TEST_TEST_DIR:-../..};
|
|
|
|
|
|
|
|
FT_TEST_BASE_DLL=${FT_TEST_BASE_DLL:-$FT_TEST_BASE_DIR/objs/.libs/libfreetype.so};
|
|
|
|
FT_TEST_TEST_DLL=$FT_TEST_TEST_DIR/objs/.libs/libfreetype.so
|
2017-08-24 13:08:34 +02:00
|
|
|
#####################################################################
|
|
|
|
mkdir ./html/pages
|
|
|
|
touch ./html/top.html;
|
|
|
|
#####################################################################
|
|
|
|
echo '
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<head>
|
|
|
|
<script type="text/javascript" src ="scripts/jquery-3.2.1.js"></script>
|
|
|
|
<script type="text/javascript" src ="scripts/jquery.animateSprite.js"></script>
|
|
|
|
<script type="text/javascript" src ="scripts/top.js" ></script>
|
|
|
|
<link rel="stylesheet" type="text/css" href="styles/top.css">
|
|
|
|
</head>
|
|
|
|
<html>
|
2017-08-26 00:45:33 +02:00
|
|
|
<body onload="change()">
|
2017-08-24 13:08:34 +02:00
|
|
|
<iframe id="frame_1" name="frame_1" src="" ></iframe>
|
|
|
|
<iframe id="frame_2" name="frame_2" src="diff.html" ></iframe>
|
|
|
|
<div class="select">
|
|
|
|
'>./html/top.html;
|
|
|
|
#####################################################################
|
|
|
|
for i in $FT_TEST_DPI; do
|
2017-08-26 00:45:33 +02:00
|
|
|
mkdir ./html/pages/$i
|
|
|
|
for j in $FT_TEST_FONT_FILE; do
|
|
|
|
mkdir ./html/pages/$i/$j
|
|
|
|
for k in $FT_TEST_RENDER_MODE; do
|
|
|
|
mkdir ./html/pages/$i/$j/$k
|
|
|
|
for l in $FT_TEST_PT_SIZE; do
|
|
|
|
mkdir ./html/pages/$i/$j/$k/$l
|
|
|
|
mkdir ./html/pages/$i/$j/$k/$l/images
|
|
|
|
./tests $FT_TEST_BASE_DLL $FT_TEST_TEST_DLL $j $l $k $i
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
2017-08-24 13:08:34 +02:00
|
|
|
done
|
|
|
|
#####################################################################
|
|
|
|
echo '<label>DPI        :<select name="dpi" id="dpi" onchange="change()">'>>./html/top.html;
|
|
|
|
for i in $FT_TEST_DPI; do
|
2017-08-26 00:45:33 +02:00
|
|
|
echo " <option value= $i > $i </option>">>./html/top.html;
|
2017-08-24 13:08:34 +02:00
|
|
|
done
|
|
|
|
echo '</select>
|
|
|
|
</label><br>'>>./html/top.html;
|
|
|
|
#####################################################################
|
|
|
|
echo '<label>Font       :<select name="font" id="font" onchange="change()">'>>./html/top.html;
|
|
|
|
for i in $FT_TEST_FONT_FILE; do
|
2017-08-26 00:45:33 +02:00
|
|
|
echo " <option value= $i > $i </option>">>./html/top.html;
|
2017-08-24 13:08:34 +02:00
|
|
|
done
|
|
|
|
echo '</select>
|
|
|
|
</label><br>'>>./html/top.html;
|
|
|
|
#####################################################################
|
|
|
|
echo '<label>Render Mode:<select name="mode" id="mode" onchange="change()">'>>./html/top.html;
|
|
|
|
for i in $FT_TEST_RENDER_MODE; do
|
2017-08-26 00:45:33 +02:00
|
|
|
echo " <option value= $i > $i </option>">>./html/top.html;
|
2017-08-24 13:08:34 +02:00
|
|
|
done
|
|
|
|
echo '</select>
|
|
|
|
</label><br>'>>./html/top.html;
|
|
|
|
#####################################################################
|
|
|
|
echo '<label>Size       :<select name="size" id="size" onchange="change()">'>>./html/top.html;
|
|
|
|
for i in $FT_TEST_PT_SIZE; do
|
2017-08-26 00:45:33 +02:00
|
|
|
echo " <option value= $i > $i </option>">>./html/top.html;
|
2017-08-24 13:08:34 +02:00
|
|
|
done
|
|
|
|
echo '</select>
|
|
|
|
</label><br>'>>./html/top.html;
|
|
|
|
#####################################################################
|
|
|
|
echo '</div>
|
|
|
|
</body>
|
|
|
|
</html>'>>./html/top.html;
|
|
|
|
#####################################################################
|
|
|
|
echo "Font : " $FT_TEST_FONT_FILE
|
|
|
|
echo "Size : " $FT_TEST_PT_SIZE
|
|
|
|
echo "Render_Mode: " $FT_TEST_RENDER_MODE
|
|
|
|
echo "DPI : " $FT_TEST_DPI
|
2017-08-03 19:36:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|