ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Font definitions.
@ 2004-11-02 14:57 Dirar BOUGATEF
  2004-11-02 16:01 ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Dirar BOUGATEF @ 2004-11-02 14:57 UTC (permalink / raw)


Hi Hans,

This is what i have done but it simply does not work.

When i try the following with \setupbodyfont[karat], it works, but when i 
use \setupbodyfont[TitleFont], it does not work, despite of the 
\definefont[TitleFont][karat]. I kant see why !!

\usetypescriptfile[Karat.tex]
\usetypescript[karat]

\definefont[TitleFont][karat]

\setupbodyfont[TitleFont] % First way
%\setupbodyfont[karat]    % Second way

\starttext
Hello
\stoptext

These are my typescripts(Karat.tex):

\usetypescriptfile[type-buy]

\loadmapfile[texnansi-rubicon-karatmedium.map]

\starttypescript [sans][karat][texnansi]
  \definefontsynonym [karat-sans][texnansi-KAMN][encoding=texnansi]
\stoptypescript

\starttypescript [sans][karat][name]
  \usetypescript[sans][fallback]
  \definefontsynonym [Sans][karat-sans]
\stoptypescript

\starttypescript [karat]
  \definetypeface [karat] [ss] [sans] [karat] [default] [encoding=texnansi]
\stoptypescript

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.com/

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: Font definitions.
@ 2004-11-02 20:28 Dirar BOUGATEF
  0 siblings, 0 replies; 6+ messages in thread
From: Dirar BOUGATEF @ 2004-11-02 20:28 UTC (permalink / raw)


Thanks Hans. I see my error now. I was using a typescript name where a 
fontsynonym name was needed.

I still have a question about \small and \big. i tried the 
\showbodyfontenvironment to see the sizes then tried this:

{\big Hello world}Hello world{\small Hello world}

I get the first and the second Hello world at the same size, where the fonts 
table shows that i should have \big at 14.3pt when my current size is at 12.

Is there any interest to define a new font environment in this case ?

This my example:


\usetypescriptfile[Karat.tex]
\usetypescript[karat]

\setupbodyfont[karat,ss,12pt]

\starttext


\showbodyfontenvironment

{\big Hello world}Hello world{\small Hello world}

\stoptext


Many thanks.

Dirar.

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.com/

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Font definitions.
@ 2004-11-02 11:29 Dirar BOUGATEF
  2004-11-02 12:21 ` Hans Hagen
  2004-11-02 15:53 ` Matt Gushee
  0 siblings, 2 replies; 6+ messages in thread
From: Dirar BOUGATEF @ 2004-11-02 11:29 UTC (permalink / raw)


Hi all,

Am trying to define a synonym of my font at 24pt where am not sure at which 
size my font is installed -should be 12pt- (The ttf includes all the 
following sizes 12, 18, 24,36, 48, 60, .. but as i've done the install from 
the pfb + afm that comes with it, i don't really know what size i have now).

Anyway i have tryed the following which turns to an error:

\usetypescriptfile[Karat.tex]
\usetypescript[karat]

\definefont[TitleFont][karat at 24pt]

\starttext
\TitleFont Hello
\stoptext

I have tryed to change the 24 to 12 and it does not work too.

This is the error message:

fonts          : [karat] [] []
(c:/TeXLive/texmf/tex/context/base/type-syn.tex)
(c:/TeXLive/texmf/tex/context/base/type-enc.tex)
(c:/TeXLive/texmf/tex/context/base/type-siz.tex)
(c:/TeXLive/texmf/tex/context/base/type-map.tex)
(c:/TeXLive/texmf/tex/context/base/type-spe.tex)
(c:/TeXLive/texmf/tex/context/base/type-exa.tex)
(c:/TeXLive/texmf/tex/context/base/type-akb.tex)
(c:/TeXLive/texmf/tex/context/user/Karat.tex
fonts          : [karat] [ss] [sans] [karat] / texnansi
fonts          : [map] [texnansi] []
(c:/TeXLive/texmf/tex/context/base/type-syn.tex)
(c:/TeXLive/texmf/tex/context/base/type-enc.tex)
(c:/TeXLive/texmf/tex/context/base/type-siz.tex)
(c:/TeXLive/texmf/tex/context/base/type-map.tex)
(c:/TeXLive/texmf/tex/context/base/type-spe.tex)
(c:/TeXLive/texmf/tex/context/base/type-exa.tex)
(c:/TeXLive/texmf/tex/context/base/type-akb.tex)
(c:/TeXLive/texmf/tex/context/user/Karat.tex)
(c:/TeXLive/texmf/tex/context/base/type-buy.tex)
fonts          : [sans,map] [karat] [name,default,texnansi,special]
(c:/TeXLive/texmf/tex/context/base/type-syn.tex)
(c:/TeXLive/texmf/tex/context/base/type-enc.tex)
(c:/TeXLive/texmf/tex/context/base/type-siz.tex)
(c:/TeXLive/texmf/tex/context/base/type-map.tex)
(c:/TeXLive/texmf/tex/context/base/type-spe.tex)
(c:/TeXLive/texmf/tex/context/base/type-exa.tex)
(c:/TeXLive/texmf/tex/context/base/type-akb.tex)
(c:/TeXLive/texmf/tex/context/user/Karat.tex
fonts          : [sans] [fallback] []
(c:/TeXLive/texmf/tex/context/base/type-syn.tex)
(c:/TeXLive/texmf/tex/context/base/type-enc.tex)
(c:/TeXLive/texmf/tex/context/base/type-siz.tex)
(c:/TeXLive/texmf/tex/context/base/type-map.tex)
(c:/TeXLive/texmf/tex/context/base/type-spe.tex)
(c:/TeXLive/texmf/tex/context/base/type-exa.tex)
(c:/TeXLive/texmf/tex/context/base/type-akb.tex)
(c:/TeXLive/texmf/tex/context/user/Karat.tex)
(c:/TeXLive/texmf/tex/context/base/type-buy.tex))
(c:/TeXLive/texmf/tex/context/base/type-buy.tex)
fonts          : [sans] [default] [size]
(c:/TeXLive/texmf/tex/context/base/type-syn.tex)
(c:/TeXLive/texmf/tex/context/base/type-enc.tex)
(c:/TeXLive/texmf/tex/context/base/type-siz.tex)
(c:/TeXLive/texmf/tex/context/base/type-map.tex)
(c:/TeXLive/texmf/tex/context/base/type-spe.tex)
(c:/TeXLive/texmf/tex/context/base/type-exa.tex)
(c:/TeXLive/texmf/tex/context/base/type-akb.tex)
(c:/TeXLive/texmf/tex/context/user/Karat.tex)
(c:/TeXLive/texmf/tex/context/base/type-buy.tex)) (./Typescript2.tuo
systems        : possible problem with 8 bit output
) (./Typescript2.tuo) (./Typescript2.tuo) (./Typescript2.tuo)
(./Typescript2.tuo) (./Typescript2.tuo) (./Typescript2.tuo) 
(./Typescript2.tuo)
(./Typescript2.tuo) (./Typescript2.tuo) (./Typescript2.tuo) 
(./Typescript2.tuo)
(./Typescript2.tuo)
fonts          : using map file: texnansi-base.map
fonts          : using map file: texnansi-rubicon-karatmedium.map
fonts          : using map file: ec-public-lm.map
fonts          : using map file: original-base.map
systems        : begin file Typescript2 at line 7
kpathsea: Running mktextfm karat
mktextfm: Could not map typeface abbreviation ar for karat.
mktextfm: Need to update c:/TeXLive/texmf/fontname/special.map?
mktextfm: Running mf "\mode:=ljfour; mag:=1; nonstopmode; input karat"
This is METAFONT, Version 2.71828 (Web2c 7.5.2)
(c:/TeXLive/texmf/web2c/cp8bit.tcx)

kpathsea: Running mktexmf karat
mktexmf: empty or non-existent rootfile!
! I can't find file `karat'.
<*> ...e:=ljfour; mag:=1; nonstopmode; input karat

Please type another input file name
! Emergency stop.
<*> ...e:=ljfour; mag:=1; nonstopmode; input karat

Transcript written on mfput.log.
mktextfm: warning: can't open log file karat.log.
mktextfm: `mf "\mode:=ljfour; mag:=1; nonstopmode; input karat"' failed.
kpathsea: Appending font creation commands to missfont.log.
! Font \**TitleFont**=karat at 24.0pt not loadable: Metric (TFM) file not 
found
.
<to be read again>
                   \relax
\dododefinefont ...ontspec {#2}\rawfontidentifier
                                                  \let 
\localrelativefontsiz...
l.8 \TitleFont
               Hello

Any idea ?

Thanks.

Dirar.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.com/

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

end of thread, other threads:[~2004-11-02 20:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-02 14:57 Font definitions Dirar BOUGATEF
2004-11-02 16:01 ` Hans Hagen
  -- strict thread matches above, loose matches on Subject: below --
2004-11-02 20:28 Dirar BOUGATEF
2004-11-02 11:29 Dirar BOUGATEF
2004-11-02 12:21 ` Hans Hagen
2004-11-02 15:53 ` Matt Gushee

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).