ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* assembling typescript
@ 2006-03-19 15:34 Karsten Heymann
  2006-03-19 19:03 ` Peter Rolf
  2006-03-20  9:34 ` Hans Hagen
  0 siblings, 2 replies; 3+ messages in thread
From: Karsten Heymann @ 2006-03-19 15:34 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1957 bytes --]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

after Patrick Gundlach convinced me at DANTE 2006 to switch the small
scientific magazine project I'm currently working on for a client from
LaTeX co ConTeXt, I'm now preparing a sample document for my client to
convince him, and for that I need your help :)

I've spent the last two weeks getting in touch wich context and I must
say I'm really impressed, nice work!

First challenge is that the document fonts are URW GaramondNo8 for the
text and Bitstream Futura (really: Bitstream Geometric 211) for the
headings. I managed quite easyly to install them with texfont and the
instructions from the contextgarden wiki[1] and compile the sample
document with either font family. But now I'm trying to (1) understand
the typescript files and (2) build an own typescript putting those fonts
together. This is what I have so far:

\usetypescriptfile[type-ugm]
\usetypescriptfile[type-bfu]

\starttypescript [ifa][texnansi]
\definetypeface [ifa] [rm] [serif] [garamond] [default]
~                [encoding=texnansi]
\definetypeface [ifa] [ss] [sans] [futura] [default]
~                [encoding=texnansi]
\definetypeface [ifa] [tt] [mono] [modern] [default]
~                [encoding=texnansi]
\stoptypescript

\usetypescript[ifa][texnansi]
%\ifa
\starttext

\ss
\input knuth

\rm
\input knuth
\stoptext

(type-ugm.tex and type-bfu.tex are attached). What happens is: When I
compile the file a is it is set in computer modern. To enable my fonts I
have to comment out \starttypescript, \stoptypescript and \usetypescript
and enable \ifa. How do I activate my fonts via a typescript.

Yours,
Karsten

[1] http://wiki.contextgarden.net/URW_Garamond
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEHXoGKLkXHxOeP2ERAoLUAJ41I6/BTzzb9IHVDSu4rNLOyb+lEQCeJCmw
AxeVTdOqaAwkFeOQTtPis6g=
=nWCx
-----END PGP SIGNATURE-----

[-- Attachment #2: type-bfu.tex --]
[-- Type: text/x-tex, Size: 2381 bytes --]

%% ==========================type-bfu.tex======================
% raw fonts

\starttypescript[sans] [futura] [texnansi]

\definefontsynonym[Futura]          [bfuk8a]  [encoding=texnansi]
\definefontsynonym[FuturaItalic]    [bfuki8a] [encoding=texnansi]
\definefontsynonym[FuturaBold]      [bfub8a]  [encoding=texnansi]
\definefontsynonym[FuturaBoldItalic][bfubi8a] [encoding=texnansi]

%bfuh8a FuturaBT-HeavyItalic
%bfuhi8a FuturaBT-Heavy
%bfuki8a FuturaBT-BookItalic
%bful8a FuturaBT-Light
%bfuli8a FuturaBT-LightItalic
%bfum8a FuturaBT-Medium
%bfumi8a FuturaBT-MediumItalic
%bfuturabc FuturaBT-BoldCondensed
%bfuturak FuturaBlackBT-Regular
%bfuturalc FuturaBT-LightCondensed
%bfuturamc FuturaBT-MediumCondensed
%bfuturbci FuturaBT-BoldCondensedItalic
%bfuturlci FuturaLtCnBTItalic
%bfuturmci FuturaMdCnBTItalic
%bfuturxkc FuturaBT-ExtraBlackCondensed
%bfutuxkci FuturaBT-ExtraBlackCondItalic
%bfux8a FuturaBT-ExtraBlack
%bfuxi8a FuturaBT-ExtraBlackItalic

\stoptypescript

%Names

\starttypescript [sans] [futura] [name]

\setups[font:fallback:sans]

\definefontsynonym[Sans]          [Futura]
\definefontsynonym[SansBold]      [Futura-Bold]
\definefontsynonym[SansItalic]    [Futura-Italic]
\definefontsynonym[SansBoldItalic][Futura-BoldItalic]

\stoptypescript

%Synonyms

\starttypescript [sans] [futura] [texnansi]

\definefontsynonym [Futura]
[\typescriptthree-bfuk8a]
[encoding=\typescriptthree]

\definefontsynonym [Futura-Italic]
[\typescriptthree-bfuki8a]
[encoding=\typescriptthree]

\definefontsynonym [Futura-Bold]
[\typescriptthree-bfub8a]
[encoding=\typescriptthree]

\definefontsynonym [Futura-BoldItalic]
[\typescriptthree-bfubi8a]
[encoding=\typescriptthree]

\stoptypescript

% maps

\starttypescript [map] [futura] [texnansi]

\loadmapfile[texnansi-bitstream-futura.map]

\stoptypescript%

% typefaces

\starttypescript [BitstreamFutura]

\definebodyfontenvironment
  [bitstreamfutura]
  [default]
  [interlinespace=2.8ex]

\definetypeface [bitstreamfutura]
[ss] [sans] [futura] [default]
[encoding=texnansi]

%\definetypeface [bitstreamfutura]
%[ss] [sans] [helvetica] [default]
%[encoding=texnansi]

\definetypeface [bitstreamfutura]
[mm] [math] [palatino] [default]
[encoding=texnansi]

\definetypeface [bitstreamfutura]
[tt] [mono] [modern] [default]
[encoding=texnansi]

\stoptypescript


%%% Local Variables:
%%% mode: context
%%% TeX-master: t
%%% End:

[-- Attachment #3: type-ugm.tex --]
[-- Type: text/x-tex, Size: 1787 bytes --]

%% ==========================type-ugm.tex======================
% raw fonts

\starttypescript[serif] [garamond] [texnansi]

\definefontsynonym[Garamond] [ugmr8a] [encoding=texnansi]
\definefontsynonym[GaramondItalic] [ugmri8a] [encoding=texnansi]
\definefontsynonym[GaramondBold] [ugmm8a] [encoding=texnansi]
\definefontsynonym[GaramondBoldItalic][ugmmi8a] [encoding=texnansi]

\stoptypescript

%Names

\starttypescript [serif] [garamond] [name]

\setups[font:fallback:serif]

\definefontsynonym[Serif] [Garamond]
\definefontsynonym[SerifBold] [Garamond-Bold]
\definefontsynonym[SerifItalic] [Garamond-Italic]
\definefontsynonym[SerifBoldItalic][Garamond-BoldItalic]

\stoptypescript

%Synonyms

\starttypescript [serif] [garamond] [texnansi]

\definefontsynonym [Garamond]
[\typescriptthree-ugmr8a]
[encoding=\typescriptthree]

\definefontsynonym [Garamond-Italic]
[\typescriptthree-ugmri8a]
[encoding=\typescriptthree]

\definefontsynonym [Garamond-Bold]
[\typescriptthree-ugmm8a]
[encoding=\typescriptthree]

\definefontsynonym [Garamond-BoldItalic]
[\typescriptthree-ugmmi8a]
[encoding=\typescriptthree]

\stoptypescript

% maps

\starttypescript [map] [garamond] [texnansi]

\loadmapfile[texnansi-urw-garamond.map]

\stoptypescript%

% typefaces

\starttypescript [URWGaramond]

\definebodyfontenvironment
  [urwgaramond]
  [default]
  [interlinespace=2.8ex]

\definetypeface [urwgaramond]
[rm] [serif] [garamond] [default]
[encoding=texnansi]

\definetypeface [urwgaramond]
[ss] [sans] [helvetica] [default]
[encoding=texnansi]

\definetypeface [urwgaramond]
[mm] [math] [palatino] [default]
[encoding=texnansi]

\definetypeface [urwgaramond]
[tt] [mono] [modern] [default]
[encoding=texnansi]

\stoptypescript


%%% Local Variables: 
%%% mode: context
%%% TeX-master: t
%%% End: 

[-- Attachment #4: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: assembling typescript
  2006-03-19 15:34 assembling typescript Karsten Heymann
@ 2006-03-19 19:03 ` Peter Rolf
  2006-03-20  9:34 ` Hans Hagen
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Rolf @ 2006-03-19 19:03 UTC (permalink / raw)


Karsten Heymann wrote:
> Hello,
> 
> after Patrick Gundlach convinced me at DANTE 2006 to switch the small
> scientific magazine project I'm currently working on for a client from
> LaTeX co ConTeXt, I'm now preparing a sample document for my client to
> convince him, and for that I need your help :)
> 
> I've spent the last two weeks getting in touch wich context and I must
> say I'm really impressed, nice work!
> 
> First challenge is that the document fonts are URW GaramondNo8 for the
> text and Bitstream Futura (really: Bitstream Geometric 211) for the
> headings. I managed quite easyly to install them with texfont and the
> instructions from the contextgarden wiki[1] and compile the sample
> document with either font family. But now I'm trying to (1) understand
> the typescript files and (2) build an own typescript putting those fonts
> together. This is what I have so far:
> 
> \usetypescriptfile[type-ugm]
> \usetypescriptfile[type-bfu]
> 
> \starttypescript [ifa][texnansi]
> \definetypeface [ifa] [rm] [serif] [garamond] [default]
> ~                [encoding=texnansi]
> \definetypeface [ifa] [ss] [sans] [futura] [default]
> ~                [encoding=texnansi]
> \definetypeface [ifa] [tt] [mono] [modern] [default]
> ~                [encoding=texnansi]
> \stoptypescript
> 
> \usetypescript[ifa][texnansi]
> %\ifa

Your typescript files seem to work (the difficult part of font
handling), but you should setup 'ifa' as your bodyfont.

\setupbodyfont[ifa,serif,12pt] % makes ifa the default font

Later on you can change the bodyfont using \switchtobodyfont[sans,10pt]
or whatever. This guarantees, that the interline spacing and the strut
height are also adapted.

Greetings, Peter

> \starttext
> 
> \ss
> \input knuth
> 
> \rm
> \input knuth
> \stoptext
> 
> (type-ugm.tex and type-bfu.tex are attached). What happens is: When I
> compile the file a is it is set in computer modern. To enable my fonts I
> have to comment out \starttypescript, \stoptypescript and \usetypescript
> and enable \ifa. How do I activate my fonts via a typescript.
> 
> Yours,
> Karsten
> 

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

* Re: assembling typescript
  2006-03-19 15:34 assembling typescript Karsten Heymann
  2006-03-19 19:03 ` Peter Rolf
@ 2006-03-20  9:34 ` Hans Hagen
  1 sibling, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2006-03-20  9:34 UTC (permalink / raw)


Karsten Heymann wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
>
> after Patrick Gundlach convinced me at DANTE 2006 to switch the small
> scientific magazine project I'm currently working on for a client from
> LaTeX co ConTeXt, I'm now preparing a sample document for my client to
> convince him, and for that I need your help :)
>
> I've spent the last two weeks getting in touch wich context and I must
> say I'm really impressed, nice work!
>
> First challenge is that the document fonts are URW GaramondNo8 for the
> text and Bitstream Futura (really: Bitstream Geometric 211) for the
> headings. I managed quite easyly to install them with texfont and the
> instructions from the contextgarden wiki[1] and compile the sample
> document with either font family. But now I'm trying to (1) understand
> the typescript files and (2) build an own typescript putting those fonts
> together. This is what I have so far:
>
> \usetypescriptfile[type-ugm]
> \usetypescriptfile[type-bfu]
>
> \starttypescript [ifa][texnansi]
> \definetypeface [ifa] [rm] [serif] [garamond] [default]
> ~                [encoding=texnansi]
> \definetypeface [ifa] [ss] [sans] [futura] [default]
> ~                [encoding=texnansi]
> \definetypeface [ifa] [tt] [mono] [modern] [default]
> ~                [encoding=texnansi]
> \stoptypescript
>
> \usetypescript[ifa][texnansi]
> %\ifa
> \starttext
>
> \ss
> \input knuth
>
> \rm
> \input knuth
> \stoptext
>
> (type-ugm.tex and type-bfu.tex are attached). What happens is: When I
> compile the file a is it is set in computer modern. To enable my fonts I
> have to comment out \starttypescript, \stoptypescript and \usetypescript
> and enable \ifa. How do I activate my fonts via a typescript.
you can use \setuptypescript[...], but best is to just use: 

\setupbodyfont[ifa] 

since the typescript mechanism is a layer on top of the more low level traditional-texie font mechanism 

so, you can have several typefaces alongside and switch between them; this is one of the reasons that typefaces exist: they enable you to construct combinations and use many of them in a document (mixed font families, math styles, etc) 


Hans 

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] 3+ messages in thread

end of thread, other threads:[~2006-03-20  9:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-19 15:34 assembling typescript Karsten Heymann
2006-03-19 19:03 ` Peter Rolf
2006-03-20  9:34 ` Hans Hagen

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