Font Art Nouveau Initialen – Cyrillic extension

The Font and my extension

You can find this font here:  Art Nouveau Initialen

But to my knowledge this font does not contain any cyrillic letters. Since I want to write the russian word Приглашение (invitation), I need at least this letters in cyrillic. I finally decided to create the missing letters by myself. Therefore you can here download the file (see below, after downloading you have to remove the .doc extension from all files…)
It contains the letters п (P)  р (R) и (I) г (G) л (L) а (A) ш (Z) е (E) and  н (N) at the given positions. Maybe one can assemble everything in such a way, that one can use the original russian letters as well… Sorry for not implementing all letters. I am not a professional and therefore the new letters might not be as beautifull as the original ones, but at least it is a  starting point…

I edited the font with the open-source program  fontforge

http://www.tug.org/mactex/fonts/fonttutorial-current.html

Some notes concerning font manipulation using fontforge

Once you have edited the font, you have to save it as PS Type 1 binary in order to use it with latex. Then the file can also be displayed.

You can also change the name of the glyph under “glyph info” in the menu

One can change the space for each letter bz

How to use the font in ubuntu

Have a look at this tutorial and at this one

I have currently Ubuntu 9.10 and according to this TexLive. I made the font available like this:

  1. I named the file ArtNouvCyrillic.pfb
  2. create the .afm file via the command (in the terminal) pf2afm ArtNouvCyrillic.pfb (or download this ArtNouvCyrillic.afm)
  3. create the .pl file via afm2pl -p ot1 ArtNouvCyrillic.afm ArtNouvCyrillic.pl (or download this ArtNouvCyrillic.pl)
  4. create the .tfm file via pltotf ArtNouvCyrillic (or download this ArtNouvCyrillic.tfm)
  5. Take this file ArtNouvCyrillic.fd as a fontdescription file for LaTex (can be edited with a text editor)
  6. Take this file  ArtNouvCyrillic.map as .map-file (can be edited with a text editor) Remark: Better use ArtNouvCyrillic ArtNouveauInitialenCyrillic ” Ot1Encoding ReEncodeFont ” <ot1.enc <ArtNouvCyrillic.pfb instead!

now we have all files  and can realy install the font: (see http://ubuntuforums.org/showthread.php?t=893490)

  1. Copy all files to the right place:

best to create a local texmf hierarchy in your home folder. Now, in /home/USERNAME/texmf, you put your fonts as follows:

(I used “/usr/share/texmf/…” instead!)

*.afm files in fonts/afm/initials/

*.tfm in fonts/tfm/initials/

*.pfb in fonts/type1/initials/

*.map in fonts/map/

*.fd in tex/latex/initials/

2. sudo texhash

3. “sudo updmap –enable Map=ArtNouvCyrillic.map”

Now the font  should be usable!

See also this link:

http://win.ua.ac.be/~nschloe/system/files/tex-font-cheatsheet.pdf

Example usage of the font

Have a look at this file for an example usage: artnouv.tex

Resulting PDF:  artnouv

Problems

Problems with gsftopk

I had problems using latex instead of pdflatex… I could trace them back to the tool gsftopk which renders the fonts. I tried

gsftopk ArtNouvCyrillic 120×120

and it failed. I realised that one has to name the font properly… So open fontforge and rename the font (open pfb-file, then  Element->Font info->Fontname) properly ! Then everything works fine!

Problems with pf2afm

I hade problems of this type:

pf2afm ShellyAllegroC.pfb
pfm file not found — ignored
Error: /ioerror in -file-
Operand stack:
()   –nostringval–
Execution stack:
%interp_exit   .runexec2   –nostringval–   –nostringval–   –nostringval–   2   %stopped_push   –nostringval–   –nostringval–   –nostringval–   false   1   %stopped_push   1862   1   3   %oparray_pop   1861   1   3   %oparray_pop   1845   1   3   %oparray_pop   1739   1   3   %oparray_pop   –nostringval–   %errorexec_pop   .runexec2   –nostringval–   –nostringval–   –nostringval–   2   %stopped_push   –nostringval–   –nostringval–   –nostringval–
Dictionary stack:
–dict:1150/1684(ro)(G)–   –dict:0/20(G)–   –dict:113/200(L)–
Current allocation mode is local
Current file position is 15350
GPL Ghostscript 8.70: Unrecoverable error, exit code 1

One can solve that if one saves the font properly with fontforge (File->Generate Fonts), after this everything works fine!

Problems with ö,ä,ü in a font which does not initially contain them

I took a font without this letters and added them manually using fontforge. Latex could not produce them nevertheless (I used T2A encoding…), probably the position was not right. But then I changed the .fd-file according to

\DeclareFontFamily{U}{ShellyAllegroC}{}
\DeclareFontShape{U}{ShellyAllegroC}{m}{n}{<-> ShellyAllegroC}{}

So U instead of T2A and LaTex immediately recognised them….

Fonts with cyrillic letters

If you have a font with cyrillic letters, have a look at

http://www.ureader.de/message/376736.aspx

There you can read:

Hier erstmal ne Anleitung fr die T2A Kodierung. OT2 macht das Kerning
kaputt. Auerdem kannst du beim Editor Transliteration simullieren (z. B.
bei Emacs: input-method " cyrillic-translit)

Stell sicher dass du t2a.enc hast und afm2tfm die findet. Rufe afm2tfm auf:

      afm2tfm phvr6w.afm   -T t2a.enc -v phvr6a 

I used antt-t2a.enc here!!!
Dann

     vptovf phvr6a.vpl

Die virtuelle Metriken brauchst du nicht und kannst phvr6a.v{pl,f}
lschen.

Erstelle eine map Datei z. B. mit dem Namen phvcyr.map mit dem Inhalt

phvr6a HelveticaCyr-Upright " T2AAdobeEncoding ReEncodeFont " <t2a.enc <phvr6w.pfb

Erstelle eine Datei mit dem Namen t2aphv.fd und Inhalt

\DeclareFontFamily{T2A}{phv}{}
\DeclareFontShape{T2A}{phv}{m}{n}{<-> phvr6a}{}

Problems with T2A – TexLive Ubuntu 9.10

I wanted to use T2A encoding for the cyrillic stuff, but I had this problems

Package fontenc Error: Encoding file “t2aenc.def” not found
Encoding scheeme T2A unknown

Then I installed cm-super and cyrillic support (see http://forum.ubuntuusers.de/topic/latex-will-kyrillische-zeichen-nicht-kompilie/#post-1658569 )

sudo apt-get install cm-super
sudo apt-get install texlive-lang-cyrillic

TTF for Latex

I used the program http://ttf2pt1.sourceforge.net/ to create the pfb-files, then everything is the same as above…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: