ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Installing a non-standard encoding vector
@ 2005-04-07 18:43 Idris Samawi Hamid
  2005-04-07 19:44 ` Adam Lindsay
  0 siblings, 1 reply; 3+ messages in thread
From: Idris Samawi Hamid @ 2005-04-07 18:43 UTC (permalink / raw)
  Cc: Hans Hagen

Dear gang,

I'm trying to install an expert font a with a non-standard encoding vector; 
can't use texnansi, ec, etc.. I tried the following:

1. I created an encoding file for my font (minion-o.enc), following the syntax

/encminiono[
/ornament1
:
/ornament23
/space 
] def

2. I placed the encoding file in /texmf-fonts/fonts/enc/dvips/minion-o;

3. I ran TeXFont:

======================================================
       encoding vector : minion-o
           vendor name : adobe
           source path : .
       font collection : minion-o
       texmf font root : c:\context\tex\texmf-fonts
       pdftex map file : minion-o-adobe-minion-o.map
           source path : .
      processing files : all on afm path
    locating afm files : using pattern *
         copying files : afm
               copying : pmnrp8a.afm
         copying files : pfb
               copying : pmnrp8a.pfb
        no map file at : 
c:\CONTEXT\tex\texmf-fonts/fonts/map/pdftex/context/min
ion-o-adobe-minion-o.map

       font identifier : Minion-Ornaments -> text -> tfm + vf
generating raw tfm/vpl : minion-o-raw-pmnrp8a (from pmnrp8a)
! tokens 3 to 257 in encoding must be literal names
] def

 ^
     generating new vf : minion-o-pmnrp8a (from minion-o-raw-pmnrp8a)
     updating map file : minion-o-adobe-minion-o.map
======================================================

but \showfont does not show any of my characters.

There appears to be one error:

======================================================
! tokens 3 to 257 in encoding must be literal names
======================================================

The label says:

======================================================
name: minion-o-pmnrp8a encoding: minion-o mapping: minion-o handling: default
======================================================

What am I missing here? How can I can install this font with my own encoding 
so that \showfont will display it?

I enclose the complete encoding vector.

Best and Thnx
Idris

======================================================
/encminiono[
/ornament1
/ornament2  
/ornament3 
/ornament4 
/ornament5
/ornament6  
/ornament7   
/ornament8   
/ornament9  
/ornament10  
/ornament11 
/ornament12  
/ornament13 
/ornament14   
/ornament15  
/ornament16   
/ornament17  
/ornament18 
/ornament19 
/ornament20  
/ornament21  
/ornament22 
/ornament23
/space 
] def
======================================================

============================
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Installing a non-standard encoding vector
  2005-04-07 18:43 Installing a non-standard encoding vector Idris Samawi Hamid
@ 2005-04-07 19:44 ` Adam Lindsay
  0 siblings, 0 replies; 3+ messages in thread
From: Adam Lindsay @ 2005-04-07 19:44 UTC (permalink / raw)


Idris Samawi Hamid said this at Thu, 7 Apr 2005 12:43:33 -0600:

>What am I missing here? How can I can install this font with my own encoding 
>so that \showfont will display it?

Idris, 

You need to have precisely 256 glyphs in your encoding vector. Try
padding your vector out with 232 /.notdef tokens, and you *should* be in
business!
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept.     atl@comp.lancs.ac.uk
 Lancaster University, InfoLab21        +44(0)1524/510.514
 Lancaster, LA1 4WA, UK             Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Installing a non-standard encoding vector
@ 2005-04-07 22:40 Idris Samawi Hamid
  0 siblings, 0 replies; 3+ messages in thread
From: Idris Samawi Hamid @ 2005-04-07 22:40 UTC (permalink / raw)


Hi Adam,

>===== Original Message From "Adam Lindsay" <atl@comp.lancs.ac.uk> =====
>>What am I missing here? How can I can install this font with my own encoding
>>so that \showfont will display it?
>
>Idris,
>
>You need to have precisely 256 glyphs in your encoding vector. Try
>padding your vector out with 232 /.notdef tokens, and you *should* be in
>business!

Thnx very much for pointing this out!

Also: I have a suggestion to you and Hans for the next version of texfont: 
Along with installing the pfb's and afm's into the texmf-fonts/fonts tree, it 
would be useful to also install the user-defined encoding files into

/texmf-fonts/fonts/enc/dvips/<myfont-enc>/

whenever the --en switch calls for it. As it is now I have to install them 
manually.

But thank you very much; I am indeed ""back in business"!

Best
Idris

============================
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-04-07 22:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-07 18:43 Installing a non-standard encoding vector Idris Samawi Hamid
2005-04-07 19:44 ` Adam Lindsay
2005-04-07 22:40 Idris Samawi Hamid

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).