170 |
and <URL:ftp://ftp.xfree86.org/pub/X.Org/contrib/fonts/>. |
and <URL:ftp://ftp.xfree86.org/pub/X.Org/contrib/fonts/>. |
171 |
|
|
172 |
|
|
173 |
|
The new Indian implementation uses the ISFOC standard fonts. We use |
174 |
|
CDAC ISFOC fonts to display the Devanagari script in Emacs. They are |
175 |
|
copyrighted, but we received permission to use them in Emacs from the |
176 |
|
font developers. These fonts can be obtained from the internet, or |
177 |
|
may be found in C-DAC products (including downloadable ones). For |
178 |
|
examle, you can search the CDAC Devanagari font `dvsr0ntt.ttf' by |
179 |
|
using some search engines and they will guide you to appropriate URLs |
180 |
|
to obtain them. |
181 |
|
|
182 |
|
After you've downloaded the fonts, then run the following Makefile |
183 |
|
to create the appropriate BDF/PCF fonts. (You will need `ttf2bdf', |
184 |
|
equipped with freetype 1, to create BDF file.) |
185 |
|
|
186 |
|
TTFS= asdr0ntt.ttf:Assamese\ |
187 |
|
bndr0ntt.ttf:Bengali\ |
188 |
|
dvsr0ntt.ttf:Devanagari\ |
189 |
|
gjav0ntt.ttf:Gujarati\ |
190 |
|
knum0ntt.ttf:Kannada\ |
191 |
|
mlkr0ntt.ttf:Malayalam\ |
192 |
|
orsr0ntt.ttf:Oriya\ |
193 |
|
pnam0ntt.ttf:Punjabi\ |
194 |
|
sdsr0ntt.ttf:Sanskrit\ |
195 |
|
tlhm0ntt.ttf:Telugu\ |
196 |
|
tmvl0ntt.ttf:Tamil |
197 |
|
|
198 |
|
all: |
199 |
|
for f in ${TTFS}; do \ |
200 |
|
ttf=`echo $$f | sed 's/:.*$$//'`; \ |
201 |
|
reg=`echo $$f | sed 's/[^:]*://'`; \ |
202 |
|
base=`basename $$ttf .ttf`; \ |
203 |
|
echo Converting "$$ttf to $$base-XX.bdf/pcf with registry $$reg"; \ |
204 |
|
for i in 16 24; do \ |
205 |
|
ttf2bdf -p $${i} -r 100 -l 0_255 $$ttf > temp; \ |
206 |
|
sed "/^FONT /s/ISO10646-1/$$reg-CDAC/" <temp >$$base-$$i.bdf; \ |
207 |
|
bdftopcf $$base-$$i.bdf > $$base-$$i.pcf; \ |
208 |
|
done; \ |
209 |
|
done |
210 |
|
rm -f temp |
211 |
|
|
212 |
|
clean: |
213 |
|
rm -f *.pcf *.bdf |
214 |
|
|
215 |
|
If your X server for X font server supports TrueType fonts, you can |
216 |
|
directly use the downloaded fonts (without converting them to PCF as |
217 |
|
above). But, in that case, you must give "Devanagari-CDAC" to the |
218 |
|
CHARSET_REGISTRY and CHARSET_ENCODING field of the devanagari font. |
219 |
|
|
220 |
|
|
221 |
DETAILED BUILDING AND INSTALLATION: |
DETAILED BUILDING AND INSTALLATION: |
222 |
|
|
223 |
(This is for a Unix or Unix-like system. For MS-DOS and Windows 3.X, |
(This is for a Unix or Unix-like system. For MS-DOS and Windows 3.X, |