Vous êtes sur la page 1sur 9

2/28/2017 Creating Tamil Fonts | Saranyaselvaraj's Blog

Saranyaselvaraj's Blog

Just another WordPress.com weblog

Creating Tamil Fonts

In Ubuntu, when install the tamil fonts they store in the location /usr/share/fonts/truetype/ by default.In fedora the tamil fonts are located in
/usr/share/fonts/

Creating New fonts:

Tools:

* Inkscape(Inkscape Vector Graphics Editor) (h p://www.inkscape.org/)

* Fontforge (h p://fontforge.sourceforge.net/)

* GIMP Image Editor (h p://www.gimp.org/)

Draw the Tamil Characters in paper using Indian ink and scan it. When you are scanning save the image as pdf.

Step 1:

1. Open the image using GIMP(Gnu Image Manipulation Tool)

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/1‑1.png)

2. Press r to select the rectangle select tool and draw a rectangle over one glyph.

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/1‑2.png)

3. Cut the glyph (ctrl + x) and paste it in a new page.

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/1‑3.png)

4. Save that glyph with the extension of .jpeg

https://saranyaselvaraj.wordpress.com/2009/09/29/creating­tamil­fonts/ 1/10
2/28/2017 Creating Tamil Fonts | Saranyaselvaraj's Blog

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/1‑4.png)

When we save the image as jpeg it prompt a window to export that image.

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/1‑5.png)

6. Open the jpeg image using inkscape.

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/1‑6.png)

7. First select the image. Then to trace the bitmap from that image.

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/trace‑bitmap‑inkscape.png)

8. Select grays and set scans as 4 then press OK. It takes some time to trace the bitmap

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/1‑7.png)

9. After it trace the bitmap there are two images came. One is the original image and the other is the traced one.

Select the original image and delete it.

https://saranyaselvaraj.wordpress.com/2009/09/29/creating­tamil­fonts/ 2/10
2/28/2017 Creating Tamil Fonts | Saranyaselvaraj's Blog

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/1‑8‑1.png)

10. Finally you have only one image. From that select the glyph and drag it to side.

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/1‑10.png)

11. Select all(ctrl+a) and change the color as black

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/1‑12.png)

12. Select the rectangle black box and delete it. Then drag the glyph inside it. There are three glyph, choose the best one as your wish.

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/1‑13.png)

13. Set the proper base line and height line. Place the glyph between those two line.

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/1‑15.png)

Import the glyph in Fontforge:

Step 2:

Phase – I

1. open a new fontforge through Application ‑> Graphics ‑> Fontforge
https://saranyaselvaraj.wordpress.com/2009/09/29/creating­tamil­fonts/ 3/10
2/28/2017 Creating Tamil Fonts | Saranyaselvaraj's Blog
1. open a new fontforge through Application ‑> Graphics ‑> Fontforge

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/newfontforge.png)

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/newff.png)

2. Change the fontinfo through Elements ‑> Fontinfo

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/fontinfo.png)

3. Give the name for the font

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/fontname.png)

4. By default fontforge doesn’t have the unicode slots for tamil so we have to add a new slot for one tamil character then save it and reopen it we can get
remaining encoding slots.

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/add_encoding_slot.png)

https://saranyaselvaraj.wordpress.com/2009/09/29/creating­tamil­fonts/ 4/10
2/28/2017 Creating Tamil Fonts | Saranyaselvaraj's Blog

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/add_encoding_slot1.png)

5.After add the encoding slot you will get one box with this symbol on the head ‘?’.

This means it doesn’t have name, we should give the name to it.

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/after‑add‑encoding‑slot.png)

6. To give the name and other information about the glyph, write click the box and select the glyph info.

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/glyph‑info.png)

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/glyph‑info1.png)

7. Give the name for the glyph.( First time only you should give the unicode name of any tamil character)

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/u0b95.png)

8. Double click the box then import the glyph which is saved in Inkscape.

https://saranyaselvaraj.wordpress.com/2009/09/29/creating­tamil­fonts/ 5/10
2/28/2017 Creating Tamil Fonts | Saranyaselvaraj's Blog

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/file‑import.png)

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/file‑import‑select.png)

9. After import the glyph you should align it as right or left or center.

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/ka.png)

10. Save the font. The default extension is .sfd(Spline Font DB)]

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/file‑save.png)

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/file‑save‑name‑svg.png)

11. Generate the font as  f(True Type Font). It takes the font name as we specified in the fontinfo section and generate fontname. f

https://saranyaselvaraj.wordpress.com/2009/09/29/creating­tamil­fonts/ 6/10
2/28/2017 Creating Tamil Fonts | Saranyaselvaraj's Blog

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/file‑generate‑font.png)

12. Close the font again open the . f file of that font using fontforge, now you can see the slots for all tamil unicode character.

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/close‑open.png)

13. Import all the Unicode glyphs  in the same way.

Unicode map:

you can get the Unicode chart from here:Tamil unicode chart (h p://www.google.co.in/url?
sa=t&source=web&ct=res&cd=1&ved=0CAsQFjAA&url=h p%3A%2F%2Funicode.org%2Fcharts%2FPDF%2FU0B80.pdf&ei=99xCS4nCFZTs7APSnbi1Bg&usg=A

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/unicode‑chart.png)

Phase – II

Add lookup table

1.To write ligature we need lookup tables, Element > FontInfo >Lookups

2.Then click Add lookup bu on on right hand side.

3.change the Type as ligature substitution.  In  feature  a drop down list is available  from that we change the feature as Above Base Substitution , Below
Base Substitution and Halant Forms based on our glyph.

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/screenshot‑untitled‑window.png)

3(i)In the Scripts(s) and Language(s) column two language are come DFLT(dflt) taml(dflt) here we need only tamil language so we delete DFLT(dflt) .

https://saranyaselvaraj.wordpress.com/2009/09/29/creating­tamil­fonts/ 7/10
2/28/2017 Creating Tamil Fonts | Saranyaselvaraj's Blog

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/3‑1.png)

3(ii)The lookup name is automatically changed as ‘abvs’ Above Base Substitutions lookup 0 then press ok.

3(iii)Adding sub table in that select the any lookup and press add sub table by default the subtable name is   ’abvs’ Above Base Substitutions in Tamil
lookup 0‑1 should change it as ‘abvs’ Above Base Substitutions in Tamil lookup 0 subtable.

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/3‑2.png)

3(iv)After adding  all the lookup tables.

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/3‑3.png)

4.Next our goal is to create ligature(Adding two characters and create new character) For example to create Ki using ka and i that is Ka=ka+i. The
following are steps to create ligature

4(i)Add the empty slots for ligature glyphs which doesn’t have unicode values. Encoding‑>Add Encoding slots. A message box appear like the
following figure.

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/screenshot‑3.png)

How many slots you need enter the number in the text box, New boxes are created without Unicode values.

For example: Here i write the ligature for the le er கி=க+◌ி

import the glyph in the empty slot right click the box choose glyph info, change the

unicode name as Tam_ki by default the unicode value is ‑1

https://saranyaselvaraj.wordpress.com/2009/09/29/creating­tamil­fonts/ 8/10
2/28/2017 Creating Tamil Fonts | Saranyaselvaraj's Blog

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/3‑7.png)

choose ligature here a table is available with two columns titled as  subtable and source glyph names.In the subtable column the dropdownlist shows
the lookup subtables which are already we add.

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/select‑subtable.png)

choose the lookup subtable which is apt to our glyph.Here i choose abvs ‘ Above Base Substitutions in Tamil lookup 0.

In the source glyph names column type the Unicode name of the two glyph  for example uni0b95 uni0bbf  is for ki. press ok this way you can create the
ligature for all glyphs  which doesn’t have Unicode values.

 (h ps://saranyaselvaraj.files.wordpress.com/2009/09/screenshot‑untitled‑window‑2.png)

save and generate the font:

From the file menu choose  Save.  The default extension is .sfd(Spline Font DB)], Generate the font as  f(True Type Font). It takes the font name as we
specified in the fontinfo section and generate fontname. f.

open the terminal:

create the directory .fonts in your  home directory.  copy the font’ s  f file  to this  directory then give the command to compile the font to your local
system.

fc‑cache ‑f ‑v

Open the open office word processor in there your font will available in the fonts list

Advertisements

Dell S2240T 21.5­inch HD Monitor

Rs. 33,990.00  (details + delivery)
Posted by saranya on September 29, 2009 at 4:17 pm
Filed under Fonts  |   Leave a comment  |   Trackback URI

https://saranyaselvaraj.wordpress.com/2009/09/29/creating­tamil­fonts/ 9/10

Vous aimerez peut-être aussi