• Home
Name Date Size #Lines LOC

..--

FontObject.cppD03-May-20246.2 KiB241175

FontObject.hD03-May-20245 KiB236183

FontTableCache.cppD03-May-20242.1 KiB9263

FontTableCache.hD03-May-2024831 4221

Makefile.inD03-May-20242.8 KiB10664

PortableFontInstance.cppD03-May-202411.3 KiB437295

PortableFontInstance.hD03-May-20243.1 KiB11861

SimpleFontInstance.cppD03-May-20242.9 KiB13390

SimpleFontInstance.hD03-May-20241.9 KiB7232

cfonts.cppD03-May-20241.6 KiB7047

cfonts.hD03-May-2024821 3316

cletest.cD03-May-202428.3 KiB743566

cletest.slnD03-May-20241.2 KiB2725

cletest.vcxprojD03-May-202410.7 KiB188187

cletest.vcxproj.filtersD03-May-20242.7 KiB8181

cmaps.cppD03-May-20244.9 KiB201146

cmaps.hD03-May-20241.7 KiB8655

gendata.cppD03-May-20249.7 KiB298211

gendata.slnD03-May-20241.2 KiB2625

gendata.vcxprojD03-May-202414.2 KiB255254

gendata.vcxproj.filtersD03-May-20242.1 KiB6060

gendata.xmlD03-May-20248.8 KiB151117

letest.cppD03-May-202442.2 KiB1,127825

letest.hD03-May-20241.1 KiB5024

letest.slnD03-May-20242.1 KiB3938

letest.vcxprojD03-May-202414.8 KiB278277

letest.vcxproj.filtersD03-May-20242.5 KiB7575

letsutil.cppD03-May-20242.5 KiB11472

letsutil.hD03-May-2024958 3818

readme.htmlD03-May-20245.7 KiB115114

sfnt.hD03-May-20249 KiB450361

testdata.cppD03-May-202449.2 KiB639590

xmlreader.cppD03-May-20248.1 KiB260190

xmlreader.hD03-May-2024565 2615

readme.html

1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<html>
3<head>
4<meta name="generator" content=
5"HTML Tidy for Windows (vers 26 April 2007), see www.w3.org">
6<meta http-equiv="Content-Type" content=
7"text/html; charset=us-ascii">
8<meta name="Copyright" content=
9"Copyright (c) 2001-2007, International Business Machines Corporation and others. All Rights Reserved.">
10<meta name="Author" content="Eric Mader">
11<meta name="GENERATOR" content=
12"Mozilla/4.72 [en] (Windows NT 5.0; U) [Netscape]">
13<title>Readme file for letest and gendata</title>
14</head>
15<body>
16<h2>What are letest and gendata?</h2>
17letest is a test program that you can use to verify the basic
18functionality of the ICU LayoutEngine. It tests the LayoutEngine's
19API and reads an XML file that contains test cases to test some of
20the features of the LayoutEngine. These test cases are not
21comprehensive, but they do test the most important features of
22&nbsp;the LayoutEngine. When you have successfully run letest, you
23can use the ICU LayoutEngine in you application knowing that the
24basic functionality is working correctly.<br>
25<p>gendata is a program that is used by the ICU team to build the
26file letest.xml which contains the test cases. Unless you have
27changed your copy of the LayoutEngine and want to validate the
28changes on other platforms, there's no reason for you to run this
29program.</p>
30<p>(The ICU team first runs a Windows application which uses the
31ICU LayoutEngine to display the text that letest uses. Once it has
32been verified that the text is displayed correctly, gendata is run
33to produce letest.xml, and then letest is run on Windows to verify
34that letest still works with the new data.)<br></p>
35<h2>How do I build letest?</h2>
36First, you need to build ICU, including the LayoutEngine.&nbsp;
37<p>On Windows, letest is part of the allinone project, so a normal
38build of ICU will also build letest. On UNIX systems, connect to
39&lt;top-build-dir&gt;/test/letest and do "make all" .<br></p>
40<h2>How do I run letest?</h2>
41Before you can run letest, you'll need to get the fonts it uses.
42For legal reasons, we can't include most of them with ICU, but you
43can download them from the web. To do this, you'll need access to a
44computer running Windows. All of the fonts should be stored in
45&lt;icu&gt;/source/test/testdata. Here's how to get the fonts:
46<p>Download a recent version of the Java 2 Platform, Standard
47Edition (J2SE) from <a href=
48"http://java.sun.com/javase/downloads/index.html">java.sun.com</a>.
49Click on the "Download" button for the version of Java that you
50want to download. The page offers both JDKs and JREs. (The JRE is
51sufficient for letest.) The download page will have a link to the
52license agreement. Be sure to read and understand the license
53agreement, and then click on the Accept button. Download the
54package and install it. You'll need one font. On Windows, it will
55be in, for example, "C:\Program Files\Java\jdk1.6.0\jre\lib\fonts".
56The file you want is "LucidaSansRegular.ttf". Copy this file into
57the directory from which you'll run letest.<br></p>
58<p>Next is the Hindi font. Go to the NCST site and download
59<a href="http://tdil.mit.gov.in/download/Raghu.htm">raghu.ttf</a>.
60When you hit the DOWNLOAD button on the page, it will open another
61window which contains a disclaimer and a license agreement. Be sure
62that you understand and agree to all of this before you download
63the font. You can download raghu.ttf into the directory from which
64you'll run letest.<br></p>
65<p>Then download the Thai font. Go to <a href=
66"http://www.into-asia.com/thai_language/thaifont/">into-asia.com</a>
67and click on the link for the Angsana font. This will download a
68.ZIP file. Extract the font file, angsd___.ttf, into the directory
69from which you will run letest.<br></p>
70<p>There's still one more font to get, the Code2000 Unicode font.
71Go to James Kass' <a href="http://www.code2000.net/">Unicode
72Support In Your Browser</a> page and click on the link that says
73"Click Here to download Code2000 shareware demo Unicode font." This
74will download a .ZIP file which contains CODE2000.TTF and
75CODE2000.HTM. Expand this .ZIP file and put the CODE2000.TTF file
76in the directory from which you'll run letest.<br></p>
77<p><span style="font-weight: bold;">Note:</span> The Code2000 font
78is shareware. If you want to use it for longer than a trial period,
79you should send a shareware fee to James. Directions for how to do
80this are in CODE2000.HTM.</p>
81<p>letest.xml references three other fonts:</p>
82<ul>
83<li>ARIALUNI.TTF is Microsoft's Arial Unicode MS font, which is
84distributed with Microsoft Office and is licensed only for use on
85the Windows operating system.</li>
86<li>Devamt.ttf is a proprietary font which cannot be freely
87downloaded.</li>
88<li>TestFont1.otf is included with ICU.</li>
89</ul>
90To run letest type CTRL+F5 in Visual Studio, or "make check" in
91UNIX.&nbsp; If everything's OK you should see something like this:
92<blockquote><tt>&nbsp;/<br>
93&nbsp;/api/<br>
94&nbsp;&nbsp; ---[OK]&nbsp; ---/api/ParameterTest<br>
95&nbsp;&nbsp; ---[OK]&nbsp; ---/api/FactoryTest<br>
96&nbsp;/layout/<br>
97&nbsp;&nbsp; ---[OK]&nbsp; ---/layout/AccessTest<br>
98&nbsp;&nbsp; ---[OK]&nbsp; ---/layout/DataDrivenTest<br>
99&nbsp;/c_api/<br>
100&nbsp;&nbsp; ---[OK]&nbsp; ---/c_api/ParameterTest<br>
101&nbsp;&nbsp; ---[OK]&nbsp; ---/c_api/FactoryTest<br>
102&nbsp;/c_layout/<br>
103&nbsp;&nbsp; ---[OK]&nbsp; ---/c_layout/AccessTest<br>
104&nbsp;&nbsp; ---[OK]&nbsp; ---/c_layout/DataDrivenTest<br>
105<br>
106[All tests passed successfully...]<br>
107Elapsed Time: 00:00:00.351<br></tt></blockquote>
108If letest cannot open a font, it will print a warning message and
109skip the test. letest will also check the version of the font you
110have to make sure it's the same one that was used to generate the
111test case. If the version doesn't match, letest will print a
112warning message and proceed with the test.<br>
113</body>
114</html>
115