Changeset 561 for trunk/src/3rdparty/harfbuzz/tests
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/3rdparty/harfbuzz/tests/shaping/main.cpp
r2 r561 179 179 void kannada(); 180 180 void malayalam(); 181 // sinhala missing181 void sinhala(); 182 182 183 183 void khmer(); 184 void nko(); 184 185 void linearB(); 185 186 }; … … 511 512 { { 0x9b0, 0x9cd, 0x995, 0x9be, 0x983, 0x0 }, 512 513 { 0x151, 0x276, 0x172, 0x144, 0x0 } }, 514 // test decomposed two parts matras 515 { { 0x995, 0x9c7, 0x9be, 0x0 }, 516 { 0x179, 0x151, 0x172, 0x0 } }, 517 { { 0x995, 0x9c7, 0x9d7, 0x0 }, 518 { 0x179, 0x151, 0x17e, 0x0 } }, 519 { { 0x9b0, 0x9cd, 0x9ad, 0x0 }, 520 { 0x168, 0x276, 0x0 } }, 521 { { 0x9f0, 0x9cd, 0x9ad, 0x0 }, 522 { 0x168, 0x276, 0x0 } }, 523 { { 0x9f1, 0x9cd, 0x9ad, 0x0 }, 524 { 0x191, 0x17d, 0x168, 0x0 } }, 513 525 514 526 { {0}, {0} } … … 639 651 const ShapeTable shape_table [] = { 640 652 { { 0x09a8, 0x09cd, 0x09af, 0x0 }, 641 { 0x0192, 0x0 } },653 { 0x01ca, 0x0 } }, 642 654 { { 0x09b8, 0x09cd, 0x09af, 0x0 }, 643 { 0x01d6, 0x0 } },655 { 0x020e, 0x0 } }, 644 656 { { 0x09b6, 0x09cd, 0x09af, 0x0 }, 645 { 0x01bc, 0x0 } },657 { 0x01f4, 0x0 } }, 646 658 { { 0x09b7, 0x09cd, 0x09af, 0x0 }, 647 { 0x01c6, 0x0 } },659 { 0x01fe, 0x0 } }, 648 660 { { 0x09b0, 0x09cd, 0x09a8, 0x09cd, 0x200d, 0x0 }, 649 { 0xd3, 0x12f, 0x0 } }, 661 { 0x10b, 0x167, 0x0 } }, 662 { { 0x9b0, 0x9cd, 0x9ad, 0x0 }, 663 { 0xa1, 0x167, 0x0 } }, 664 { { 0x9f0, 0x9cd, 0x9ad, 0x0 }, 665 { 0xa1, 0x167, 0x0 } }, 666 { { 0x9f1, 0x9cd, 0x9ad, 0x0 }, 667 { 0x11c, 0xa1, 0x0 } }, 650 668 651 669 { {0}, {0} } … … 669 687 { 670 688 { 671 FT_Face face = loadFace("lohit .punjabi.1.1.ttf");689 FT_Face face = loadFace("lohit_pa.ttf"); 672 690 if (face) { 673 691 const ShapeTable shape_table [] = { … … 824 842 { { 0xc15, 0xc4d, 0xc30, 0xc48, 0x0 }, 825 843 { 0xe6, 0xb3, 0x9f, 0x0 } }, 826 { {0}, {0} } 827 844 { { 0xc15, 0xc46, 0xc56, 0x0 }, 845 { 0xe6, 0xb3, 0x0 } }, 846 { {0}, {0} } 828 847 }; 829 848 … … 868 887 { { 0x0cb0, 0x0ccd, 0x200d, 0x0c95, 0x0 }, 869 888 { 0x0050, 0x00a7, 0x0 } }, 870 871 889 { {0}, {0} } 872 890 }; … … 892 910 { { 0x0cb7, 0x0ccd, 0x0 }, 893 911 { 0x0163, 0x0 } }, 912 { { 0xc95, 0xcbf, 0xcd5, 0x0 }, 913 { 0x114, 0x73, 0x0 } }, 914 { { 0xc95, 0xcc6, 0xcd5, 0x0 }, 915 { 0x90, 0x6c, 0x73, 0x0 } }, 916 { { 0xc95, 0xcc6, 0xcd6, 0x0 }, 917 { 0x90, 0x6c, 0x74, 0x0 } }, 918 { { 0xc95, 0xcc6, 0xcc2, 0x0 }, 919 { 0x90, 0x6c, 0x69, 0x0 } }, 920 { { 0xc95, 0xcca, 0xcd5, 0x0 }, 921 { 0x90, 0x6c, 0x69, 0x73, 0x0 } }, 922 894 923 895 924 { {0}, {0} } … … 944 973 { { 0x0d30, 0x0d4d, 0x200d, 0x0 }, 945 974 { 0x009e, 0x0 } }, 946 975 { { 0xd15, 0xd46, 0xd3e, 0x0 }, 976 { 0x5e, 0x34, 0x58, 0x0 } }, 977 { { 0xd15, 0xd47, 0xd3e, 0x0 }, 978 { 0x5f, 0x34, 0x58, 0x0 } }, 979 { { 0xd15, 0xd46, 0xd57, 0x0 }, 980 { 0x5e, 0x34, 0x65, 0x0 } }, 981 { { 0xd15, 0xd57, 0x0 }, 982 { 0x34, 0x65, 0x0 } }, 983 { { 0xd1f, 0xd4d, 0xd1f, 0xd41, 0xd4d, 0x0 }, 984 { 0x69, 0x5b, 0x64, 0x0 } }, 947 985 948 986 { {0}, {0} } … … 961 999 } 962 1000 } 963 } 964 1001 1002 { 1003 FT_Face face = loadFace("Rachana.ttf"); 1004 if (face) { 1005 const ShapeTable shape_table [] = { 1006 { { 0xd37, 0xd4d, 0xd1f, 0xd4d, 0xd30, 0xd40, 0x0 }, 1007 { 0x385, 0xa3, 0x0 } }, 1008 { { 0xd2f, 0xd4d, 0xd15, 0xd4d, 0xd15, 0xd41, 0x0 }, 1009 { 0x2ff, 0x0 } }, 1010 { { 0xd33, 0xd4d, 0xd33, 0x0 }, 1011 { 0x3f8, 0x0 } }, 1012 { { 0xd2f, 0xd4d, 0xd15, 0xd4d, 0xd15, 0xd41, 0x0 }, 1013 { 0x2ff, 0x0 } }, 1014 1015 { {0}, {0} } 1016 }; 1017 1018 1019 const ShapeTable *s = shape_table; 1020 while (s->unicode[0]) { 1021 QVERIFY( shaping(face, s, HB_Script_Malayalam) ); 1022 ++s; 1023 } 1024 1025 FT_Done_Face(face); 1026 } else { 1027 QSKIP("couln't find Rachana.ttf", SkipAll); 1028 } 1029 } 1030 1031 } 1032 1033 void tst_QScriptEngine::sinhala() 1034 { 1035 { 1036 FT_Face face = loadFace("FM-MalithiUW46.ttf"); 1037 if (face) { 1038 const ShapeTable shape_table [] = { 1039 { { 0xd9a, 0xdd9, 0xdcf, 0x0 }, 1040 { 0x4a, 0x61, 0x42, 0x0 } }, 1041 { { 0xd9a, 0xdd9, 0xddf, 0x0 }, 1042 { 0x4a, 0x61, 0x50, 0x0 } }, 1043 { { 0xd9a, 0xdd9, 0xdca, 0x0 }, 1044 { 0x4a, 0x62, 0x0 } }, 1045 { { 0xd9a, 0xddc, 0xdca, 0x0 }, 1046 { 0x4a, 0x61, 0x42, 0x41, 0x0 } }, 1047 { { 0xd9a, 0xdda, 0x0 }, 1048 { 0x4a, 0x62, 0x0 } }, 1049 { { 0xd9a, 0xddd, 0x0 }, 1050 { 0x4a, 0x61, 0x42, 0x41, 0x0 } }, 1051 { {0}, {0} } 1052 }; 1053 1054 const ShapeTable *s = shape_table; 1055 while (s->unicode[0]) { 1056 QVERIFY( shaping(face, s, HB_Script_Sinhala) ); 1057 ++s; 1058 } 1059 1060 FT_Done_Face(face); 1061 } else { 1062 QSKIP("couln't find FM-MalithiUW46.ttf", SkipAll); 1063 } 1064 } 1065 } 965 1066 966 1067 … … 1006 1107 } 1007 1108 1109 void tst_QScriptEngine::nko() 1110 { 1111 { 1112 FT_Face face = loadFace("DejaVuSans.ttf"); 1113 if (face) { 1114 const ShapeTable shape_table [] = { 1115 { { 0x7ca, 0x0 }, 1116 { 0x5c1, 0x0 } }, 1117 { { 0x7ca, 0x7ca, 0x0 }, 1118 { 0x14db, 0x14d9, 0x0 } }, 1119 { { 0x7ca, 0x7fa, 0x7ca, 0x0 }, 1120 { 0x14db, 0x5ec, 0x14d9, 0x0 } }, 1121 { { 0x7ca, 0x7f3, 0x7ca, 0x0 }, 1122 { 0x14db, 0x5e7, 0x14d9, 0x0 } }, 1123 { { 0x7ca, 0x7f3, 0x7fa, 0x7ca, 0x0 }, 1124 { 0x14db, 0x5e7, 0x5ec, 0x14d9, 0x0 } }, 1125 { {0}, {0} } 1126 }; 1127 1128 1129 const ShapeTable *s = shape_table; 1130 while (s->unicode[0]) { 1131 QVERIFY( shaping(face, s, HB_Script_Nko) ); 1132 ++s; 1133 } 1134 1135 FT_Done_Face(face); 1136 } else { 1137 QSKIP("couln't find DejaVuSans.ttf", SkipAll); 1138 } 1139 } 1140 } 1141 1142 1008 1143 void tst_QScriptEngine::linearB() 1009 1144 { 1010 1145 { 1011 FT_Face face = loadFace(" PENUTURE.TTF");1146 FT_Face face = loadFace("penuture.ttf"); 1012 1147 if (face) { 1013 1148 const ShapeTable shape_table [] = {
Note:
See TracChangeset
for help on using the changeset viewer.