ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Font woes
@ 2002-04-07  9:08 h+i
  2002-04-07 18:22 ` Idris Samawi Hamid
  0 siblings, 1 reply; 7+ messages in thread
From: h+i @ 2002-04-07  9:08 UTC (permalink / raw)


As pdftex (with context) uses his own psfonts.map (e.g 
texfm/pdftex/config/psfonts.map) your ps-fonts should be mentioned there.
>From your explanation below it is not clear if you have done this.
hh

From:           	Idris Samawi Hamid <ishamid@attbi.com>
To: 	ntg-context@ntg.nl
Date sent:      	Sat, 06 Apr 2002 21:36:13 -0700
Subject:        	Font woes

> Dear folks,
> 
> I still can't get my Arabic fonts working. ConTeXt (omega format)
> keeps trying to load cmr12 instead. Also, setting up sizes is not
> clear to me.
> 
> I tried the following typescript:
> =======================================================
> %type-mtnaskhi.tex
> 
> \usetypescriptfile[type-buy]
> 
> \starttypescript [naskh] [mtnaskhi]
>   \definefontsynonym [Mtnaskh-Roman]       [mtnaskh]  
>   \definefontsynonym [Mtnaskh-Bold]        [mtnaskhb]  
>   \definefontsynonym [Mtnaskh-Italic]      [mtnaskh] 
>   \definefontsynonym [Mtnaskh-Bold-Italic] [mtnaskhb] 
> \stoptypescript
> 
> \starttypescript [naskh] [mtnaskhi] [name]
>   \usetypescript[serif][fallback]
>   \definefontsynonym [Serif]           [Mtnaskh-Roman]
>   \definefontsynonym [SerifBold]       [Mtnaskh-Bold]
>   \definefontsynonym [SerifItalic]     [Mtnaskh-Italic]
>   \definefontsynonym [SerifBoldItalic] [Mtnaskh-Bold-Italic]
> \stoptypescript
> 
> \starttypescript [Mtnaskh]
>   \definetypeface [MyMtnaskh] [rm] [naskh] [mtnaskhi] [default] 
> \stoptypescript
> ===============================================================
> 
> I tried using this font as follows:
> ===============================================================
> \usetypescriptfile[type-mtnaskhi]
> \usetypescript[Mtnaskh]
> \setupbodyfont[MyMtnaskh]
> 
> \starttext
> 
> <Arabic text here>
> 
> \stoptext
> ================================================================
> 
> Let me explain my situation. I have a font family, mtnaskhi, with 3
> raw fonts: 
> 
> mtnaskh;
> mtnaskhb;
> mtnaskh8. 
> 
> The encoding is OT1. `mtnaskhi' is the complete family name.
> 
> These fonts constitute a ``naskh'' family analogous to a 
> ``roman'' or ``serif'' family in Latin. I want to use these as
> follows:
> 
> mtnaskh for main text greater than 9pt;
> mtnaskh8 for main text smaller than 9pt (like footnotes)
> mtnaskhb for bold text;
> 
> All other medium styles should be substituted by the main text fonts
> as dictated by size All other bold styles should be substituted by the
> bold text font. Each font should be scaled by 1.6. 
> 
> Put another way, I'm trying to translate the following NFSS code into
> typescripts:
> 
> \DeclareFontShape{OT1}{mtnaskhi}{m}{n}{
>    <9-> [1.6] mtnaskh
>    <-9> [1.6] mtnaskh8
> }{}
> \DeclareFontShape{OT1}{mtnaskhi}{bx}{n}{
>    <-> [1.6] mtnaskhb
> }{}
> 
> These fonts are already installed on my system and listed in config.ps
> and config for dvipdfm. Plain Omega and Lambda have worked fine up to
> now so the problem is not in my font installation.
> 
> What am I doing wrong? How do I set up my needed sizes (which I have
> not done in the above typescript).
> 
> Best wishes
> Idris
> 
> ==========================
> Dr. Idris Samawi Hamid
> Depatment of Philosophy
> Colorado State University
> Fort Collins, CO 80526
> 
> 
> 


^ permalink raw reply	[flat|nested] 7+ messages in thread
* Font woes
@ 2002-04-07  4:36 Idris Samawi Hamid
  2002-04-07 20:02 ` Idris Samawi Hamid
  0 siblings, 1 reply; 7+ messages in thread
From: Idris Samawi Hamid @ 2002-04-07  4:36 UTC (permalink / raw)


Dear folks,

I still can't get my Arabic fonts working. ConTeXt (omega format) keeps trying to load cmr12 instead. Also, setting up sizes is not clear to me.

I tried the following typescript:
=======================================================
%type-mtnaskhi.tex

\usetypescriptfile[type-buy]

\starttypescript [naskh] [mtnaskhi]
  \definefontsynonym [Mtnaskh-Roman]       [mtnaskh]  
  \definefontsynonym [Mtnaskh-Bold]        [mtnaskhb]  
  \definefontsynonym [Mtnaskh-Italic]      [mtnaskh] 
  \definefontsynonym [Mtnaskh-Bold-Italic] [mtnaskhb] 
\stoptypescript

\starttypescript [naskh] [mtnaskhi] [name]
  \usetypescript[serif][fallback]
  \definefontsynonym [Serif]           [Mtnaskh-Roman]
  \definefontsynonym [SerifBold]       [Mtnaskh-Bold]
  \definefontsynonym [SerifItalic]     [Mtnaskh-Italic]
  \definefontsynonym [SerifBoldItalic] [Mtnaskh-Bold-Italic]
\stoptypescript

\starttypescript [Mtnaskh]
  \definetypeface [MyMtnaskh] [rm] [naskh] [mtnaskhi] [default] 
\stoptypescript
===============================================================

I tried using this font as follows:
===============================================================
\usetypescriptfile[type-mtnaskhi]
\usetypescript[Mtnaskh]
\setupbodyfont[MyMtnaskh]

\starttext

<Arabic text here>

\stoptext
================================================================

Let me explain my situation. I have a font family, mtnaskhi, with 3 raw fonts: 

mtnaskh;
mtnaskhb;
mtnaskh8. 

The encoding is OT1. `mtnaskhi' is the complete family name.

These fonts constitute a ``naskh'' family analogous to a 
``roman'' or ``serif'' family in Latin. I want to use these as follows:

mtnaskh for main text greater than 9pt;
mtnaskh8 for main text smaller than 9pt (like footnotes)
mtnaskhb for bold text;

All other medium styles should be substituted by the main text fonts as dictated by size
All other bold styles should be substituted by the bold text font.
Each font should be scaled by 1.6. 

Put another way, I'm trying to translate the following NFSS code into typescripts:

\DeclareFontShape{OT1}{mtnaskhi}{m}{n}{
   <9-> [1.6] mtnaskh
   <-9> [1.6] mtnaskh8
}{}
\DeclareFontShape{OT1}{mtnaskhi}{bx}{n}{
   <-> [1.6] mtnaskhb
}{}

These fonts are already installed on my system and listed in config.ps and config for dvipdfm. Plain Omega and Lambda have worked fine up to now so the problem is not in my font installation.

What am I doing wrong? How do I set up my needed sizes (which I have not done in the above typescript).

Best wishes
Idris

==========================
Dr. Idris Samawi Hamid
Depatment of Philosophy
Colorado State University
Fort Collins, CO 80526


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

end of thread, other threads:[~2002-04-10 14:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-07  9:08 Font woes h+i
2002-04-07 18:22 ` Idris Samawi Hamid
2002-04-08  7:54   ` Hans Hagen
2002-04-08 14:04     ` Idris Samawi Hamid
  -- strict thread matches above, loose matches on Subject: below --
2002-04-07  4:36 Idris Samawi Hamid
2002-04-07 20:02 ` Idris Samawi Hamid
2002-04-10 14:46   ` 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).