Ignore:
Timestamp:
Feb 11, 2010, 11:19:06 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.1 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/3rdparty/harfbuzz/tests/shaping/main.cpp

    r2 r561  
    179179    void kannada();
    180180    void malayalam();
    181     // sinhala missing
     181    void sinhala();
    182182
    183183    void khmer();
     184    void nko();
    184185    void linearB();
    185186};
     
    511512                { { 0x9b0, 0x9cd, 0x995, 0x9be, 0x983, 0x0 },
    512513                  { 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 } },
    513525
    514526                { {0}, {0} }
     
    639651            const ShapeTable shape_table [] = {
    640652                { { 0x09a8, 0x09cd, 0x09af, 0x0 },
    641                   { 0x0192, 0x0 } },
     653                  { 0x01ca, 0x0 } },
    642654                { { 0x09b8, 0x09cd, 0x09af, 0x0 },
    643                   { 0x01d6, 0x0 } },
     655                  { 0x020e, 0x0 } },
    644656                { { 0x09b6, 0x09cd, 0x09af, 0x0 },
    645                   { 0x01bc, 0x0 } },
     657                  { 0x01f4, 0x0 } },
    646658                { { 0x09b7, 0x09cd, 0x09af, 0x0 },
    647                   { 0x01c6, 0x0 } },
     659                  { 0x01fe, 0x0 } },
    648660                { { 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 } },
    650668
    651669                { {0}, {0} }
     
    669687{
    670688    {
    671         FT_Face face = loadFace("lohit.punjabi.1.1.ttf");
     689        FT_Face face = loadFace("lohit_pa.ttf");
    672690        if (face) {
    673691            const ShapeTable shape_table [] = {
     
    824842                { { 0xc15, 0xc4d, 0xc30, 0xc48, 0x0 },
    825843                  { 0xe6, 0xb3, 0x9f, 0x0 } },
    826                 { {0}, {0} }
    827 
     844                { { 0xc15, 0xc46, 0xc56, 0x0 },
     845                  { 0xe6, 0xb3, 0x0 } },
     846                { {0}, {0} }
    828847            };
    829848
     
    868887                { { 0x0cb0, 0x0ccd, 0x200d, 0x0c95, 0x0 },
    869888                  { 0x0050, 0x00a7, 0x0 } },
    870 
    871889                { {0}, {0} }
    872890            };
     
    892910                { { 0x0cb7, 0x0ccd, 0x0 },
    893911                  { 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
    894923
    895924                { {0}, {0} }
     
    944973                { { 0x0d30, 0x0d4d, 0x200d, 0x0 },
    945974                  { 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 } },
    947985
    948986                { {0}, {0} }
     
    961999        }
    9621000    }
    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
     1033void 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}
    9651066
    9661067
     
    10061107}
    10071108
     1109void 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
    10081143void tst_QScriptEngine::linearB()
    10091144{
    10101145    {
    1011         FT_Face face = loadFace("PENUTURE.TTF");
     1146        FT_Face face = loadFace("penuture.ttf");
    10121147        if (face) {
    10131148            const ShapeTable shape_table [] = {
Note: See TracChangeset for help on using the changeset viewer.