* 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 14:57 Font definitions Dirar BOUGATEF
@ 2004-11-02 16:01 ` Hans Hagen
0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2004-11-02 16:01 UTC (permalink / raw)
Dirar BOUGATEF wrote:
> 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]
add: \setupbodyfont[karat,ss]
> \definefont[TitleFont][karat]
becomes: \definefont[TitleFont][Sans at 24pt] % or karat-sans at 24pt or
texnansi-KAMN at 24pt
> \starttext
add: \TitleFont
> Hello
> \stoptext
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ 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
* Re: Font definitions.
2004-11-02 11:29 Dirar BOUGATEF
@ 2004-11-02 12:21 ` Hans Hagen
2004-11-02 15:53 ` Matt Gushee
1 sibling, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2004-11-02 12:21 UTC (permalink / raw)
Dirar BOUGATEF wrote:
> 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]
\definefont[TitleFont][Serif at 24pt]
\definefont[TitleFont][KaratRegular at 24pt]
it all depensa on what you have defined in the typescript; you can uss
any font synonym as long as it resolves to something known (say
texnansi-karat)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Font definitions.
2004-11-02 11:29 Dirar BOUGATEF
2004-11-02 12:21 ` Hans Hagen
@ 2004-11-02 15:53 ` Matt Gushee
1 sibling, 0 replies; 6+ messages in thread
From: Matt Gushee @ 2004-11-02 15:53 UTC (permalink / raw)
On Tue, Nov 02, 2004 at 11:29:35AM +0000, Dirar BOUGATEF wrote:
>
> 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).
Both TrueType and Type1 fonts are scalable to any size you want. Some
applications (MS Word) will show you a limited selection of sizes, but
those are just the application designers' ideas of what sizes are
useful--they have nothing to do with the capabilities of the fonts
themselves. And regardless of what your Windows menus show, TeX uses its
own system for handling fonts. So don't worry about the size: if the
font is available at all, it is available in 24pt.
But how did you install the fonts, exactly? Did you use the texfont
utility? If so, your work is probably almost done, but texfont will have
generated some new map files that are probably not known to the system.
If you are trying to output PDF, then you probably just need to add
references to the new map files to the master pdfTeX config; with DVI,
it's a bit more complex, but again is basically a matter of editing one
or two map files.
> This is the error message:
It would be helpful if you also showed the exact command that resulted
in this error. Maybe the true TeX gurus can deduce from the output what
you were trying to do, but the rest of us need a bit more information to
have a chance of understanding the problem.
--
Matt Gushee When a nation follows the Way,
Haven Rock Press Horses bear manure through
Englewood, Colorado, USA its fields;
books@havenrock.com When a nation ignores the Way,
Horses bear soldiers through
its streets.
--Lao Tzu (Peter Merel, trans.)
^ 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).