ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* setups in typescripts
@ 2010-05-30  8:18 Bernhard Rosensteiner
  2010-05-30  8:51 ` Wolfgang Schuster
  2010-05-30 20:44 ` Willi Egger
  0 siblings, 2 replies; 6+ messages in thread
From: Bernhard Rosensteiner @ 2010-05-30  8:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello,

i have made a typescript which works. the only thing is that i have in my typescript something like:

\startsetups [fallbackfonts]
…
\stopsetups

\starttypescript [bla]
\setups[fallbackfonts]
…
\stoptypescript

referring in my document to the typescriptfile with \usetypescriptfile[Mytypescript] does not load the setups and so the font fallback is not working (obviously \usetypescriptfile only loads the typescripts).
When i do: 

\input Mytypescript

in the document all works as expected. So my question is how can i load setups with \usetypescriptfile
Maybe i have to make a extra „fontfallback-setups“ file, but i don´t know how it is recognized by context. Please help.

best regards
Bernhard



___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: setups in typescripts
  2010-05-30  8:18 setups in typescripts Bernhard Rosensteiner
@ 2010-05-30  8:51 ` Wolfgang Schuster
  2010-05-30  9:28   ` Bernhard Rosensteiner
  2010-05-30 12:02   ` Bernhard Rosensteiner
  2010-05-30 20:44 ` Willi Egger
  1 sibling, 2 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2010-05-30  8:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 30.05.10 10:18, schrieb Bernhard Rosensteiner:
> Hello,
>
> i have made a typescript which works. the only thing is that i have in my typescript something like:
>
> \startsetups [fallbackfonts]
> …
> \stopsetups
>
> \starttypescript [bla]
> \setups[fallbackfonts]
> …
> \stoptypescript
>
> referring in my document to the typescriptfile with \usetypescriptfile[Mytypescript] does not load the setups and so the font fallback is not working (obviously \usetypescriptfile only loads the typescripts).
> When i do:
>
> \input Mytypescript
>
> in the document all works as expected. So my question is how can i load setups with \usetypescriptfile
> Maybe i have to make a extra „fontfallback-setups“ file, but i don´t know how it is recognized by context. Please help.
>    

Can you show use your typescripts and the setups for the fallback fonts.

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: setups in typescripts
  2010-05-30  8:51 ` Wolfgang Schuster
@ 2010-05-30  9:28   ` Bernhard Rosensteiner
  2010-05-30 12:02   ` Bernhard Rosensteiner
  1 sibling, 0 replies; 6+ messages in thread
From: Bernhard Rosensteiner @ 2010-05-30  9:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

ok i have boiled it down as minimal as possible (2 files in attachment). I have commented out line 123 in my typescript:

%\definefontsynonym[SansSubhead-SemiBold]		[file:CronosPro-SemiboldSubh]	[features=default]

so according to my \startsetups[font:optical:sans:fallback] (line 3 in typescript) it should do:

\definefontsynonym[SansSubhead-SemiBold] [SansSubhead-Bold] (line 60 typescript)

but it doesn´t.

the line \definefontsynonym[SansSubhead-SemiBold] [SansSubhead-Bold] in my document restores the wanted behaviour.
So \startsetups … \stopsetups don´t get loaded from the \usetypescriptfile command.

i hope i have made it clear what i mean.

best regards
Bernhard


[-- Attachment #2: test.tex --]
[-- Type: application/octet-stream, Size: 242 bytes --]

%\definefontsynonym[SansSubhead-SemiBold] [SansSubhead-Bold]

\usetypescriptfile[type-garamondcronos]

\usetypescript[GaramondProCronosPro]
\setupbodyfont[GaramondProCronosPro, sans, 16pt]

\starttext
fallbacktest {\bf fallbacktest}
\stoptext

[-- Attachment #3: type-garamondcronos.tex --]
[-- Type: application/octet-stream, Size: 15740 bytes --]

%---------- fallbacks ----------%

\startsetups[font:optical:sans:fallback]
	\definefontsynonym[Sans]							[SansRegular-Regular]
	\definefontsynonym[SansBold]						[SansRegular-Bold]
	\definefontsynonym[SansItalic]						[SansRegular-Italic]
	\definefontsynonym[SansSlanted]						[SansRegular-Slanted]
	\definefontsynonym[SansBoldItalic]					[SansRegular-BoldItalic]
	\definefontsynonym[SansBoldSlanted]					[SansRegular-BoldSlanted]
	\definefontsynonym[SansCaps]						[SansRegular-CapsRegular]
	\definefontsynonym[SansCapsItalic]					[SansRegular-CapsItalic]
	\definefontsynonym[SansCapsSlanted]					[SansRegular-CapsSlanted]
	\definefontsynonym[SansCapsBold]					[SansRegular-CapsBold]
	\definefontsynonym[SansCapsBoldItalic]				[SansRegular-CapsBoldItalic]
	\definefontsynonym[SansCapsBoldSlanted]				[SansRegular-CapsBoldSlanted]

	\definefontsynonym[SansCaption-Light]	 			[SansCaption-Regular]
	\definefontsynonym[SansCaption-Regular] 			[SansRegular-Regular]
	\definefontsynonym[SansCaption-Medium] 				[SansRegular-Bold]
	\definefontsynonym[SansCaption-SemiBold]			[SansCaption-Bold]
	\definefontsynonym[SansCaption-Bold]				[SansCaption-Regular]
	\definefontsynonym[SansCaption-Black]				[SansCaption-Bold]
	\definefontsynonym[SansCaption-LightItalic]			[SansCaption-Italic]
	\definefontsynonym[SansCaption-LightSlanted]		[SansCaption-Italic]
	\definefontsynonym[SansCaption-Italic]				[SansCaption-Regular]
	\definefontsynonym[SansCaption-Slanted]				[SansCaption-Italic]
	\definefontsynonym[SansCaption-MediumItalic]		[SansCaption-BoldItalic]
	\definefontsynonym[SansCaption-MediumSlanted]		[SansCaption-BoldItalic]
	\definefontsynonym[SansCaption-SemiBoldItalic]		[SansCaption-BoldItalic]
	\definefontsynonym[SansCaption-SemiBoldSlanted]		[SansCaption-BoldItalic]
	\definefontsynonym[SansCaption-BoldItalic]			[SansCaption-Italic]
	\definefontsynonym[SansCaption-BoldSlanted]			[SansCaption-Italic]
	\definefontsynonym[SansCaption-BlackItalic]			[SansCaption-BoldItalic]
	\definefontsynonym[SansCaption-BlackSlanted]		[SansCaption-BoldItalic]
	\definefontsynonym[SansCaption-Caps]				[SansCaption-Regular]

	\definefontsynonym[SansRegular-Light]				[SansRegular-Regular]
	\definefontsynonym[SansRegular-Regular]				[DefaultFont]
	\definefontsynonym[SansRegular-Medium]				[SansRegular-Bold]
	\definefontsynonym[SansRegular-SemiBold]			[SansRegular-Bold]
	\definefontsynonym[SansRegular-Bold]				[SansRegular-Regular]
	\definefontsynonym[SansRegular-Black]				[SansRegular-Bold]
	\definefontsynonym[SansRegular-LightItalic]			[SansRegular-Italic]
	\definefontsynonym[SansRegular-LightSlanted]		[SansRegular-Italic]
	\definefontsynonym[SansRegular-Italic]				[SansRegular-Regular]
	\definefontsynonym[SansRegular-Slanted]				[SansRegular-Italic]
	\definefontsynonym[SansRegular-MediumItalic]		[SansRegular-BoldItalic]
	\definefontsynonym[SansRegular-MediumSlanted]		[SansRegular-BoldItalic]
	\definefontsynonym[SansRegular-SemiBoldItalic]		[SansRegular-BoldItalic]
	\definefontsynonym[SansRegular-SemiBoldSlaned]		[SansRegular-BoldItalic]
	\definefontsynonym[SansRegular-BoldItalic]			[SansRegular-Italic]
	\definefontsynonym[SansRegular-BoldSlanted]			[SansRegular-Italic]
	\definefontsynonym[SansRegular-BlackItalic]			[SansRegular-BoldItalic]
	\definefontsynonym[SansRegular-BlackSlanted]		[SansRegular-BoldItalic]
	\definefontsynonym[SansRegular-Caps]				[SansRegular-Regular]

	\definefontsynonym[SansSubhead-Light]				[SansSubhead-Regular]       
	\definefontsynonym[SansSubhead-Regular]				[SansRegular-Regular]
	\definefontsynonym[SansSubhead-Medium]				[SansRegular-Bold]
	\definefontsynonym[SansSubhead-SemiBold]			[SansSubhead-Bold]
	\definefontsynonym[SansSubhead-Bold]				[SansSubhead-Regular]
	\definefontsynonym[SansSubhead-Black]				[SansSubhead-Bold]
	\definefontsynonym[SansSubhead-LightItalic]			[SansSubhead-Italic]
	\definefontsynonym[SansSubhead-LightSlanted]		[SansSubhead-Italic]
	\definefontsynonym[SansSubhead-Italic]				[SansSubhead-Regular]
	\definefontsynonym[SansSubhead-Slanted]				[SansSubhead-Italic]
	\definefontsynonym[SansSubhead-MediumItalic]		[SansSubhead-BoldItalic]
	\definefontsynonym[SansSubhead-MediumSlanted]		[SansSubhead-BoldItalic]
	\definefontsynonym[SansSubhead-SemiBoldItalic]		[SansSubhead-BoldItalic]
	\definefontsynonym[SansSubhead-SemiBoldSlanted]		[SansSubhead-BoldItalic]
	\definefontsynonym[SansSubhead-BoldItalic]			[SansSubhead-Italic]
	\definefontsynonym[SansSubhead-BoldSlanted]			[SansSubhead-Italic]
	\definefontsynonym[SansSubhead-BlackItalic]			[SansSubhead-BoldItalic]
	\definefontsynonym[SansSubhead-BlackSlanted]		[SansSubhead-BoldItalic]
	\definefontsynonym[SansSubhead-Caps]				[SansSubhead-Regular]

	\definefontsynonym[SansDisplay-Light]				[SansDisplay-Regular]
	\definefontsynonym[SansDisplay-Regular]				[SansRegular-Regular]
	\definefontsynonym[SansDisplay-Medium]				[SansRegular-Bold]
	\definefontsynonym[SansDisplay-SemiBold]			[SansDisplay-Bold]
	\definefontsynonym[SansDisplay-Bold]				[SansDisplay-Regular]
	\definefontsynonym[SansDisplay-Black]				[SansDisplay-Bold]
	\definefontsynonym[SansDisplay-LightItalic]			[SansDisplay-Italic]
	\definefontsynonym[SansDisplay-LightSlanted]		[SansDisplay-Italic]
	\definefontsynonym[SansDisplay-Italic]				[SansDisplay-Regular]
	\definefontsynonym[SansDisplay-Slanted]				[SansDisplay-Italic]
	\definefontsynonym[SansDisplay-MediumItalic]		[SansDisplay-BoldItalic]
	\definefontsynonym[SansDisplay-MediumSlanted]		[SansDisplay-BoldItalic]
	\definefontsynonym[SansDisplay-SemiBoldItalic]		[SansDisplay-BoldItalic]
	\definefontsynonym[SansDisplay-SemiBoldSlanted]		[SansDisplay-BoldItalic]
	\definefontsynonym[SansDisplay-BoldItalic]			[SansDisplay-Italic]
	\definefontsynonym[SansDisplay-BoldSlanted]			[SansDisplay-Italic]
	\definefontsynonym[SansDisplay-BlackItalic]			[SansDisplay-BoldItalic]
	\definefontsynonym[SansDisplay-BlackSlanted]		[SansDisplay-BoldItalic]
	\definefontsynonym[SansDisplay-Caps]				[SansDisplay-Regular]
\stopsetups


%-------------------- CronosPro --------------------%
\starttypescript[sans][cronos][name]
	\setups[font:optical:sans:fallback]

	\definefontsynonym[SansCaption-Light]			[file:CronosPro-LtCapt]			[features=default]
	\definefontsynonym[SansCaption-Regular]			[file:CronosPro-Capt]			[features=default]
	\definefontsynonym[SansCaption-SemiBold]		[file:CronosPro-SemiboldCapt]	[features=default]
	\definefontsynonym[SansCaption-Bold]			[file:CronosPro-BoldCapt]		[features=default]
	\definefontsynonym[SansCaption-LightItalic]		[file:CronosPro-LtCaptIt]		[features=default]
	\definefontsynonym[SansCaption-Italic]			[file:CronosPro-CaptIt]			[features=default]
	\definefontsynonym[SansCaption-SemiBoldItalic]	[file:CronosPro-SemiboldCaptIt]	[features=default]
	\definefontsynonym[SansCaption-BoldItalic]		[file:CronosPro-BoldCaptIt] 	[features=default]

	\definefontsynonym[SansRegular-Light]			[file:CronosPro-Lt]				[features=default]
	\definefontsynonym[SansRegular-Regular]			[file:CronosPro-Regular]		[features=default]
	\definefontsynonym[SansRegular-SemiBold]		[file:CronosPro-Semibold]		[features=default]
	\definefontsynonym[SansRegular-Bold]			[file:CronosPro-Bold]			[features=default]
	\definefontsynonym[SansRegular-LightItalic]		[file:CronosPro-LtIt]			[features=default]
	\definefontsynonym[SansRegular-Italic]			[file:CronosPro-Italic]			[features=default]
	\definefontsynonym[SansRegular-SemiBoldItalic]	[file:CronosPro-SemiboldIt]		[features=default]
	\definefontsynonym[SansRegular-BoldItalic]		[file:CronosPro-BoldIt]			[features=default]

	\definefontsynonym[SansSubhead-Light]			[file:CronosPro-LtSubh]			[features=default]
	\definefontsynonym[SansSubhead-Regular]			[file:CronosPro-Subh]			[features=default]
	%\definefontsynonym[SansSubhead-SemiBold]		[file:CronosPro-SemiboldSubh]	[features=default]
	\definefontsynonym[SansSubhead-Bold]			[file:CronosPro-BoldSubh]		[features=default]
	\definefontsynonym[SansSubhead-LightItalic]		[file:CronosPro-LtSubhIt]		[features=default]
	\definefontsynonym[SansSubhead-Italic]			[file:CronosPro-SubhIt]			[features=default]
	\definefontsynonym[SansSubhead-SemiBoldItalic]	[file:CronosPro-SemiboldSubhIt]	[features=default]
	\definefontsynonym[SansSubhead-BoldItalic]		[file:CronosPro-BoldSubhIt]		[features=default]

	\definefontsynonym[SansDisplay-Light]			[file:CronosPro-LtDisp]			[features=default]
	\definefontsynonym[SansDisplay-Regular]			[file:CronosPro-Disp]			[features=default]
	\definefontsynonym[SansDisplay-SemiBold]		[file:CronosPro-SemiboldDisp]	[features=default]
	\definefontsynonym[SansDisplay-Bold]			[file:CronosPro-BoldDisp]		[features=default]
	\definefontsynonym[SansDisplay-LightItalic]		[file:CronosPro-LtDispIt]		[features=default]
	\definefontsynonym[SansDisplay-Italic]			[file:CronosPro-DispIt]			[features=default]
	\definefontsynonym[SansDisplay-SemiBoldItalic]	[file:CronosPro-SemiboldDispIt]	[features=default]
	\definefontsynonym[SansDisplay-BoldItalic]		[file:CronosPro-BoldDispIt]		[features=default]
\stoptypescript

%-------------------- GaramondPro --------------------%
\starttypescript [serif] [garamond] [name]

	\definefontsynonym[SerifCaption-Regular]		[file:GaramondPremrPro-Capt]		[features=default]
	\definefontsynonym[SerifCaption-Medium]			[file:GaramondPremrPro-MedCapt]		[features=default]
	\definefontsynonym[SerifCaption-SemiBold]		[file:GaramondPremrPro-SmBdCapt]	[features=default]
	\definefontsynonym[SerifCaption-Bold]			[file:GaramondPremrPro-BdCapt]		[features=default]
	\definefontsynonym[SerifCaption-Italic]			[file:GaramondPremrPro-ItCapt]		[features=default]
	\definefontsynonym[SerifCaption-MediumItalic]	[file:GaramondPremrPro-MedItCapt]	[features=default]
	\definefontsynonym[SerifCaption-SemiBoldItalic]	[file:GaramondPremrPro-SmBdItCapt]	[features=default]
	\definefontsynonym[SerifCaption-BoldItalic]		[file:GaramondPremrPro-BdItCapt] 	[features=default]
	                                                
	\definefontsynonym[SerifRegular-Regular]		[file:GaramondPremrPro]				[features=default]
	\definefontsynonym[SerifRegular-Medium]			[file:GaramondPremrPro-Med]			[features=default]
	\definefontsynonym[SerifRegular-SemiBold]		[file:GaramondPremrPro-SmBd]		[features=default]
	\definefontsynonym[SerifRegular-Bold]			[file:GaramondPremrPro-Bd]			[features=default]
	\definefontsynonym[SerifRegular-Italic]			[file:GaramondPremrPro-It]			[features=default]
	\definefontsynonym[SerifRegular-MediumItalic]	[file:GaramondPremrPro-MedIt]		[features=default]
	\definefontsynonym[SerifRegular-SemiBoldItalic]	[file:GaramondPremrPro-SmBdIt]		[features=default]
	\definefontsynonym[SerifRegular-BoldItalic]		[file:GaramondPremrPro-BdIt]		[features=default]
	                                                
	\definefontsynonym[SerifSubhead-Regular]		[file:GaramondPremrPro-Subh]		[features=default]
	\definefontsynonym[SerifSubhead-Medium]			[file:GaramondPremrPro-MedSubh]		[features=default]
	\definefontsynonym[SerifSubhead-SemiBold]		[file:GaramondPremrPro-SmBdSubh]	[features=default]
	\definefontsynonym[SerifSubhead-Bold]			[file:GaramondPremrPro-BdSubh]		[features=default]
	\definefontsynonym[SerifSubhead-Italic]			[file:GaramondPremrPro-ItSubh]		[features=default]
	\definefontsynonym[SerifSubhead-MediumItalic]	[file:GaramondPremrPro-MedItSubh]	[features=default]
	\definefontsynonym[SerifSubhead-SemiBoldItalic]	[file:GaramondPremrPro-SmBdItSubh]	[features=default]
	\definefontsynonym[SerifSubhead-BoldItalic]		[file:GaramondPremrPro-BdItSubh]	[features=default]
                                                    
	\definefontsynonym[SerifDisplay-Light]			[file:GaramondPremrPro-LtDisp]		[features=default]
	\definefontsynonym[SerifDisplay-Regular]		[file:GaramondPremrPro-Disp]		[features=default]
	\definefontsynonym[SerifDisplay-Medium]			[file:GaramondPremrPro-MedDisp]		[features=default]
	\definefontsynonym[SerifDisplay-SemiBold]		[file:GaramondPremrPro-SmBdDisp]	[features=default]
	\definefontsynonym[SerifDisplay-Bold]			[file:GaramondPremrPro-BdDisp]		[features=default]
	\definefontsynonym[SerifDisplay-LightItalic]	[file:GaramondPremrPro-LtItDisp]	[features=default]
	\definefontsynonym[SerifDisplay-Italic]			[file:GaramondPremrPro-ItDisp]		[features=default]
	\definefontsynonym[SerifDisplay-MediumItalic]	[file:GaramondPremrPro-MedItDisp]	[features=default]
	\definefontsynonym[SerifDisplay-SemiBoldItalic]	[file:GaramondPremrPro-SmBdItDisp]	[features=default]
	\definefontsynonym[SerifDisplay-BoldItalic]		[file:GaramondPremrPro-BdItDisp]	[features=default]
\stoptypescript


%-------------------- Optical Bodyfonts --------------------%

\starttypescript [serif] [optical:regular] [size]
	\definebodyfont [4pt,5pt,6pt,7pt,8pt,9pt] [rm]
		[tf=SerifCaption-Regular						sa 1,
		 bf=SerifCaption-Bold							sa 1,
		 sl=SerifCaption-Slanted						sa 1,
		 it=SerifCaption-Italic							sa 1,
		 bs=SerifCaption-BoldSlanted					sa 1,
		 bi=SerifCaption-BoldItalic						sa 1,
		 sc=SerifCaption-Regular*smallcaps				sa 1]

	\definebodyfont [10pt,11pt,12pt,13pt] [rm]
		[tf=SerifRegular-Regular						sa 1,
		 bf=SerifRegular-Bold							sa 1,
		 sl=SerifRegular-Slanted						sa 1,
		 it=SerifRegular-Italic							sa 1,
		 bs=SerifRegular-BoldSlanted					sa 1,
		 bi=SerifRegular-BoldItalic						sa 1,
		 sc=SerifRegular-Regular*smallcaps				sa 1]

	\definebodyfont [14pt,14.4pt,15pt,16pt,17pt,17.3pt,18pt,20pt] [rm]
		[tf=SerifSubhead-Regular						sa 1,
		 bf=SerifSubhead-Bold							sa 1,
		 sl=SerifSubhead-Slanted						sa 1,
		 it=SerifSubhead-Italic							sa 1,
		 bs=SerifSubhead-BoldSlanted					sa 1,
		 bi=SerifSubhead-BoldItalic						sa 1,
		 sc=SerifSubhead-Regular*smallcaps				sa 1]

	\definebodyfont [20.7pt,22pt,24pt,26pt,28pt,30pt,32pt,34pt,36pt,38pt,40pt,42pt] [rm]
		[tf=SerifDisplay-Regular						sa 1,
		 bf=SerifDisplay-Bold							sa 1,
		 sl=SerifDisplay-Slanted						sa 1,
		 it=SerifDisplay-Italic							sa 1,
		 bs=SerifDisplay-BoldSlanted					sa 1,
		 bi=SerifDisplay-BoldItalic						sa 1,
		 sc=SerifDisplay-Regular*smallcaps				sa 1]
\stoptypescript

\starttypescript [sans] [optical:regular] [size]
	\definebodyfont [4pt,5pt,6pt,7pt,8pt,9pt] [ss]
		[tf=SansCaption-Regular							sa 1,
		 bf=SansCaption-SemiBold							sa 1,
		 sl=SansCaption-Slanted							sa 1,
		 it=SansCaption-Italic							sa 1,
		 bs=SansCaption-SemiBoldSlanted						sa 1,
		 bi=SansCaption-SemiBoldItalic						sa 1,
		 sc=SansCaption-Regular*smallcaps				sa 1]

	\definebodyfont [10pt,11pt,12pt,13pt] [ss]
		[tf=SansRegular-Regular							sa 1,
		 bf=SansRegular-SemiBold							sa 1,
		 sl=SansRegular-Slanted							sa 1,
		 it=SansRegular-Italic							sa 1,
		 bs=SansRegular-SemiBoldSlanted						sa 1,
		 bi=SansRegular-SemiBoldItalic						sa 1,
		 sc=SansRegular-Regular*smallcaps				sa 1]

	\definebodyfont [14pt,14.4pt,15pt,16pt,17pt,17.3pt,18pt,20pt] [ss]
		[tf=SansSubhead-Regular							sa 1,
		 bf=SansSubhead-SemiBold							sa 1,
		 sl=SansSubhead-Slanted							sa 1,
		 it=SansSubhead-Italic							sa 1,
		 bs=SansSubhead-SemiBoldSlanted						sa 1,
		 bi=SansSubhead-SemiBoldItalic						sa 1,
		 sc=SansSubhead-Regular*smallcaps				sa 1]

	\definebodyfont [20.7pt,22pt,24pt,26pt,28pt,30pt,32pt,34pt,36pt,38pt,40pt,42pt] [ss]
		[tf=SansDisplay-Regular							sa 1,
		 bf=SansDisplay-SemiBold							sa 1,
		 sl=SansDisplay-Slanted							sa 1,
		 it=SansDisplay-Italic							sa 1,
		 bs=SansDisplay-SemiBoldSlanted						sa 1,
		 bi=SansDisplay-SemiBoldItalic						sa 1,
		 sc=SansDisplay-Regular*smallcaps				sa 1]
\stoptypescript

\starttypescript [GaramondProCronosPro, CronosProGaramondPro, GaramondCronos, CronosGaramond]
	\definetypeface [\typescriptone] [rm] [serif] [garamond]		[optical:regular]		[rscale=1.08]
	\definetypeface [\typescriptone] [ss] [sans]  [cronos]			[optical:regular]
\stoptypescript

[-- Attachment #4: test.log --]
[-- Type: application/octet-stream, Size: 4978 bytes --]

("/Users/Bernhard/Documents/ConTeXt Experimente/BugReports/typescript_setup_test/test.tex"
publications    : loading formatting style from bxml-apa
(/Applications/ConTeXt/tex/texmf-context/tex/context/base/bxml-apa.mkiv)

ConTeXt  ver: 2010.05.24 13:05 MKIV  fmt: 2010.5.30  int: english/english

system          : cont-new loaded
(/Applications/ConTeXt/tex/texmf-context/tex/context/base/cont-new.tex
systems         : beware: some patches loaded from cont-new.tex
(/Applications/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv))
system          : cont-fil loaded
(/Applications/ConTeXt/tex/texmf-context/tex/context/base/cont-fil.tex
loading         : ConTeXt File Synonyms
)
system          : cont-sys.rme loaded
(/Applications/ConTeXt/tex/texmf-context/tex/context/user/cont-sys.rme (/Applications/ConTeXt/tex/texmf-context/tex/context/base/type-def.mkiv) (/Applications/ConTeXt/tex/texmf-context/tex/context/base/type-lua.mkiv) (/Applications/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv) (/Applications/ConTeXt/tex/texmf-context/tex/context/base/type-otf.mkiv))
system          : test.top loaded
%
%	begin of optionfile
%
%	% runtime options files (command line driven)
%	\unprotect
%	% special commands, mostly for the ctx development team
%	% feedback and basic job control
%	% handy for special styles
%	\startluacode
%	document = document or { }
%	document.arguments={
%	}
%	document.files={
%	 "test.tex",
%	}
%	\stopluacode
%	% process info
%	\setupsystem[inputfile=test.tex]
%	\setupsystem[\c!n=1,\c!m=1]
%	% modes
%	% options (not that important)
%	\startsetups *runtime:options
%	\setupoutput[pdftex]
%	\stopsetups
%	% styles and modules
%	\startsetups *runtime:modules
%	\stopsetups
%	% done
%	\protect \endinput
%
%	end of optionfile
%
(test.top)
fonts           : preloading latin modern fonts
{/Applications/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/Applications/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{/Applications/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
bodyfont        : 12pt rm is loaded
language        : language en is active
("/Users/Bernhard/Documents/ConTeXt Experimente/BugReports/typescript_setup_test/type-garamondcronos.tex")
systems         : begin file test.tex at line 8
!define font    : font with name SansSubhead-SemiBold is not found
!define font    : unknown font SansSubhead-SemiBold, loading aborted
!define font    : unable to define SansSubhead-SemiBold as \*GaramondProCronosPro16ptssbf*
!pages          : flushing realpage 1, userpage 1, subpage 1
systems         : end file test.tex at line 10
system          : cont-err loaded
(/Applications/ConTeXt/tex/texmf-context/tex/context/base/cont-err.tex
systems         : no file 'cont-sys.tex', using 'cont-sys.rme' instead
) )</Users/Bernhard/Library/Fonts/CronosPro-Subh.otf>
mkiv lua stats : used config path          - /Applications/ConTeXt/tex/texmf/web2c/texmf.cnf
mkiv lua stats : used cache path           - /Applications/ConTeXt/tex/texmf-cache
mkiv lua stats : input load time           - 0.026 seconds
mkiv lua stats : stored bytecode data      - 213 modules, 53 tables, 266 chunks
mkiv lua stats : node list callback tasks  - 6 unique task lists, 5 instances (re)created, 323 calls
mkiv lua stats : cleaned up reserved nodes - 32 nodes, 9 lists of 410
mkiv lua stats : node memory usage         - 20 glue_spec
mkiv lua stats : used backend              - pdf (backend for directly generating pdf output)
mkiv lua stats : loaded patterns           - en:us:pat:exc:2
mkiv lua stats : startup time              - 0.461 seconds including runtime option file processing
mkiv lua stats : callbacks                 - direct: 528, indirect: 4613, total: 5141
mkiv lua stats : lxml preparation time     - 0.000 seconds, 0 nodes, 15 lpath calls, 0 cached calls
mkiv lua stats : result saved in file      - test.pdf
mkiv lua stats : loaded fonts              - 44 files: lmmono10-regular.otf lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman10-bold.otf lmroman10-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman8-bold.otf lmroman8-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans10-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmex10.tfm lmmi10.tfm lmmi12.tfm lmmi7.tfm lmmi8.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy8.tfm lmsy9.tfm rm-lmr10.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr8.tfm rm-lmr9.tfm cronospro-subh.otf
mkiv lua stats : fonts load time           - 0.439 seconds 
mkiv lua stats : luatex banner             - this is luatex, version beta-0.60.1-2010042810
mkiv lua stats : control sequences         - 35579 of 165536
mkiv lua stats : current memory usage      - 59 MB (ctx: 60 MB)
mkiv lua stats : runtime                   - 1.324 seconds, 1 processed pages, 1 shipped pages, 0.755 pages/second


[-- Attachment #5: Type: text/plain, Size: 1493 bytes --]



Am 30.05.2010 um 10:51 schrieb Wolfgang Schuster:

> Am 30.05.10 10:18, schrieb Bernhard Rosensteiner:
>> Hello,
>> 
>> i have made a typescript which works. the only thing is that i have in my typescript something like:
>> 
>> \startsetups [fallbackfonts]
>> …
>> \stopsetups
>> 
>> \starttypescript [bla]
>> \setups[fallbackfonts]
>> …
>> \stoptypescript
>> 
>> referring in my document to the typescriptfile with \usetypescriptfile[Mytypescript] does not load the setups and so the font fallback is not working (obviously \usetypescriptfile only loads the typescripts).
>> When i do:
>> 
>> \input Mytypescript
>> 
>> in the document all works as expected. So my question is how can i load setups with \usetypescriptfile
>> Maybe i have to make a extra „fontfallback-setups“ file, but i don´t know how it is recognized by context. Please help.
>>   
> 
> Can you show use your typescripts and the setups for the fallback fonts.
> 
> Wolfgang
> 
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


[-- Attachment #6: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: setups in typescripts
  2010-05-30  8:51 ` Wolfgang Schuster
  2010-05-30  9:28   ` Bernhard Rosensteiner
@ 2010-05-30 12:02   ` Bernhard Rosensteiner
  1 sibling, 0 replies; 6+ messages in thread
From: Bernhard Rosensteiner @ 2010-05-30 12:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

Am 30.05.2010 um 10:51 schrieb Wolfgang Schuster:

> Am 30.05.10 10:18, schrieb Bernhard Rosensteiner:
>> Hello,
>> 
>> i have made a typescript which works. the only thing is that i have in my typescript something like:
>> 
>> \startsetups [fallbackfonts]
>> …
>> \stopsetups
>> 
>> \starttypescript [bla]
>> \setups[fallbackfonts]
>> …
>> \stoptypescript
>> 
>> referring in my document to the typescriptfile with \usetypescriptfile[Mytypescript] does not load the setups and so the font fallback is not working (obviously \usetypescriptfile only loads the typescripts).
>> When i do:
>> 
>> \input Mytypescript
>> 
>> in the document all works as expected. So my question is how can i load setups with \usetypescriptfile
>> Maybe i have to make a extra „fontfallback-setups“ file, but i don´t know how it is recognized by context. Please help.
>> 
> 
> Can you show use your typescripts and the setups for the fallback fonts.

second try (i think i have something messed up with the email format…):

ok i have boiled it down as minimal as possible (2 files in attachment). I have commented out line 123 in my typescript:

%\definefontsynonym[SansSubhead-SemiBold]		[file:CronosPro-SemiboldSubh]	[features=default]

so according to my \startsetups[font:optical:sans:fallback] (line 3 in typescript) it should do:

\definefontsynonym[SansSubhead-SemiBold] [SansSubhead-Bold] (line 60 typescript)

but it doesn´t.

the line \definefontsynonym[SansSubhead-SemiBold] [SansSubhead-Bold] in my document restores the wanted behaviour.
So \startsetups … \stopsetups don´t get loaded from the \usetypescriptfile command.

i hope i have made it clear what i mean.

best regards
Bernhard


[-- Attachment #2: test.tex --]
[-- Type: application/octet-stream, Size: 242 bytes --]

%\definefontsynonym[SansSubhead-SemiBold] [SansSubhead-Bold]

\usetypescriptfile[type-garamondcronos]

\usetypescript[GaramondProCronosPro]
\setupbodyfont[GaramondProCronosPro, sans, 16pt]

\starttext
fallbacktest {\bf fallbacktest}
\stoptext

[-- Attachment #3: type-garamondcronos.tex --]
[-- Type: application/octet-stream, Size: 15740 bytes --]

%---------- fallbacks ----------%

\startsetups[font:optical:sans:fallback]
	\definefontsynonym[Sans]							[SansRegular-Regular]
	\definefontsynonym[SansBold]						[SansRegular-Bold]
	\definefontsynonym[SansItalic]						[SansRegular-Italic]
	\definefontsynonym[SansSlanted]						[SansRegular-Slanted]
	\definefontsynonym[SansBoldItalic]					[SansRegular-BoldItalic]
	\definefontsynonym[SansBoldSlanted]					[SansRegular-BoldSlanted]
	\definefontsynonym[SansCaps]						[SansRegular-CapsRegular]
	\definefontsynonym[SansCapsItalic]					[SansRegular-CapsItalic]
	\definefontsynonym[SansCapsSlanted]					[SansRegular-CapsSlanted]
	\definefontsynonym[SansCapsBold]					[SansRegular-CapsBold]
	\definefontsynonym[SansCapsBoldItalic]				[SansRegular-CapsBoldItalic]
	\definefontsynonym[SansCapsBoldSlanted]				[SansRegular-CapsBoldSlanted]

	\definefontsynonym[SansCaption-Light]	 			[SansCaption-Regular]
	\definefontsynonym[SansCaption-Regular] 			[SansRegular-Regular]
	\definefontsynonym[SansCaption-Medium] 				[SansRegular-Bold]
	\definefontsynonym[SansCaption-SemiBold]			[SansCaption-Bold]
	\definefontsynonym[SansCaption-Bold]				[SansCaption-Regular]
	\definefontsynonym[SansCaption-Black]				[SansCaption-Bold]
	\definefontsynonym[SansCaption-LightItalic]			[SansCaption-Italic]
	\definefontsynonym[SansCaption-LightSlanted]		[SansCaption-Italic]
	\definefontsynonym[SansCaption-Italic]				[SansCaption-Regular]
	\definefontsynonym[SansCaption-Slanted]				[SansCaption-Italic]
	\definefontsynonym[SansCaption-MediumItalic]		[SansCaption-BoldItalic]
	\definefontsynonym[SansCaption-MediumSlanted]		[SansCaption-BoldItalic]
	\definefontsynonym[SansCaption-SemiBoldItalic]		[SansCaption-BoldItalic]
	\definefontsynonym[SansCaption-SemiBoldSlanted]		[SansCaption-BoldItalic]
	\definefontsynonym[SansCaption-BoldItalic]			[SansCaption-Italic]
	\definefontsynonym[SansCaption-BoldSlanted]			[SansCaption-Italic]
	\definefontsynonym[SansCaption-BlackItalic]			[SansCaption-BoldItalic]
	\definefontsynonym[SansCaption-BlackSlanted]		[SansCaption-BoldItalic]
	\definefontsynonym[SansCaption-Caps]				[SansCaption-Regular]

	\definefontsynonym[SansRegular-Light]				[SansRegular-Regular]
	\definefontsynonym[SansRegular-Regular]				[DefaultFont]
	\definefontsynonym[SansRegular-Medium]				[SansRegular-Bold]
	\definefontsynonym[SansRegular-SemiBold]			[SansRegular-Bold]
	\definefontsynonym[SansRegular-Bold]				[SansRegular-Regular]
	\definefontsynonym[SansRegular-Black]				[SansRegular-Bold]
	\definefontsynonym[SansRegular-LightItalic]			[SansRegular-Italic]
	\definefontsynonym[SansRegular-LightSlanted]		[SansRegular-Italic]
	\definefontsynonym[SansRegular-Italic]				[SansRegular-Regular]
	\definefontsynonym[SansRegular-Slanted]				[SansRegular-Italic]
	\definefontsynonym[SansRegular-MediumItalic]		[SansRegular-BoldItalic]
	\definefontsynonym[SansRegular-MediumSlanted]		[SansRegular-BoldItalic]
	\definefontsynonym[SansRegular-SemiBoldItalic]		[SansRegular-BoldItalic]
	\definefontsynonym[SansRegular-SemiBoldSlaned]		[SansRegular-BoldItalic]
	\definefontsynonym[SansRegular-BoldItalic]			[SansRegular-Italic]
	\definefontsynonym[SansRegular-BoldSlanted]			[SansRegular-Italic]
	\definefontsynonym[SansRegular-BlackItalic]			[SansRegular-BoldItalic]
	\definefontsynonym[SansRegular-BlackSlanted]		[SansRegular-BoldItalic]
	\definefontsynonym[SansRegular-Caps]				[SansRegular-Regular]

	\definefontsynonym[SansSubhead-Light]				[SansSubhead-Regular]       
	\definefontsynonym[SansSubhead-Regular]				[SansRegular-Regular]
	\definefontsynonym[SansSubhead-Medium]				[SansRegular-Bold]
	\definefontsynonym[SansSubhead-SemiBold]			[SansSubhead-Bold]
	\definefontsynonym[SansSubhead-Bold]				[SansSubhead-Regular]
	\definefontsynonym[SansSubhead-Black]				[SansSubhead-Bold]
	\definefontsynonym[SansSubhead-LightItalic]			[SansSubhead-Italic]
	\definefontsynonym[SansSubhead-LightSlanted]		[SansSubhead-Italic]
	\definefontsynonym[SansSubhead-Italic]				[SansSubhead-Regular]
	\definefontsynonym[SansSubhead-Slanted]				[SansSubhead-Italic]
	\definefontsynonym[SansSubhead-MediumItalic]		[SansSubhead-BoldItalic]
	\definefontsynonym[SansSubhead-MediumSlanted]		[SansSubhead-BoldItalic]
	\definefontsynonym[SansSubhead-SemiBoldItalic]		[SansSubhead-BoldItalic]
	\definefontsynonym[SansSubhead-SemiBoldSlanted]		[SansSubhead-BoldItalic]
	\definefontsynonym[SansSubhead-BoldItalic]			[SansSubhead-Italic]
	\definefontsynonym[SansSubhead-BoldSlanted]			[SansSubhead-Italic]
	\definefontsynonym[SansSubhead-BlackItalic]			[SansSubhead-BoldItalic]
	\definefontsynonym[SansSubhead-BlackSlanted]		[SansSubhead-BoldItalic]
	\definefontsynonym[SansSubhead-Caps]				[SansSubhead-Regular]

	\definefontsynonym[SansDisplay-Light]				[SansDisplay-Regular]
	\definefontsynonym[SansDisplay-Regular]				[SansRegular-Regular]
	\definefontsynonym[SansDisplay-Medium]				[SansRegular-Bold]
	\definefontsynonym[SansDisplay-SemiBold]			[SansDisplay-Bold]
	\definefontsynonym[SansDisplay-Bold]				[SansDisplay-Regular]
	\definefontsynonym[SansDisplay-Black]				[SansDisplay-Bold]
	\definefontsynonym[SansDisplay-LightItalic]			[SansDisplay-Italic]
	\definefontsynonym[SansDisplay-LightSlanted]		[SansDisplay-Italic]
	\definefontsynonym[SansDisplay-Italic]				[SansDisplay-Regular]
	\definefontsynonym[SansDisplay-Slanted]				[SansDisplay-Italic]
	\definefontsynonym[SansDisplay-MediumItalic]		[SansDisplay-BoldItalic]
	\definefontsynonym[SansDisplay-MediumSlanted]		[SansDisplay-BoldItalic]
	\definefontsynonym[SansDisplay-SemiBoldItalic]		[SansDisplay-BoldItalic]
	\definefontsynonym[SansDisplay-SemiBoldSlanted]		[SansDisplay-BoldItalic]
	\definefontsynonym[SansDisplay-BoldItalic]			[SansDisplay-Italic]
	\definefontsynonym[SansDisplay-BoldSlanted]			[SansDisplay-Italic]
	\definefontsynonym[SansDisplay-BlackItalic]			[SansDisplay-BoldItalic]
	\definefontsynonym[SansDisplay-BlackSlanted]		[SansDisplay-BoldItalic]
	\definefontsynonym[SansDisplay-Caps]				[SansDisplay-Regular]
\stopsetups


%-------------------- CronosPro --------------------%
\starttypescript[sans][cronos][name]
	\setups[font:optical:sans:fallback]

	\definefontsynonym[SansCaption-Light]			[file:CronosPro-LtCapt]			[features=default]
	\definefontsynonym[SansCaption-Regular]			[file:CronosPro-Capt]			[features=default]
	\definefontsynonym[SansCaption-SemiBold]		[file:CronosPro-SemiboldCapt]	[features=default]
	\definefontsynonym[SansCaption-Bold]			[file:CronosPro-BoldCapt]		[features=default]
	\definefontsynonym[SansCaption-LightItalic]		[file:CronosPro-LtCaptIt]		[features=default]
	\definefontsynonym[SansCaption-Italic]			[file:CronosPro-CaptIt]			[features=default]
	\definefontsynonym[SansCaption-SemiBoldItalic]	[file:CronosPro-SemiboldCaptIt]	[features=default]
	\definefontsynonym[SansCaption-BoldItalic]		[file:CronosPro-BoldCaptIt] 	[features=default]

	\definefontsynonym[SansRegular-Light]			[file:CronosPro-Lt]				[features=default]
	\definefontsynonym[SansRegular-Regular]			[file:CronosPro-Regular]		[features=default]
	\definefontsynonym[SansRegular-SemiBold]		[file:CronosPro-Semibold]		[features=default]
	\definefontsynonym[SansRegular-Bold]			[file:CronosPro-Bold]			[features=default]
	\definefontsynonym[SansRegular-LightItalic]		[file:CronosPro-LtIt]			[features=default]
	\definefontsynonym[SansRegular-Italic]			[file:CronosPro-Italic]			[features=default]
	\definefontsynonym[SansRegular-SemiBoldItalic]	[file:CronosPro-SemiboldIt]		[features=default]
	\definefontsynonym[SansRegular-BoldItalic]		[file:CronosPro-BoldIt]			[features=default]

	\definefontsynonym[SansSubhead-Light]			[file:CronosPro-LtSubh]			[features=default]
	\definefontsynonym[SansSubhead-Regular]			[file:CronosPro-Subh]			[features=default]
	%\definefontsynonym[SansSubhead-SemiBold]		[file:CronosPro-SemiboldSubh]	[features=default]
	\definefontsynonym[SansSubhead-Bold]			[file:CronosPro-BoldSubh]		[features=default]
	\definefontsynonym[SansSubhead-LightItalic]		[file:CronosPro-LtSubhIt]		[features=default]
	\definefontsynonym[SansSubhead-Italic]			[file:CronosPro-SubhIt]			[features=default]
	\definefontsynonym[SansSubhead-SemiBoldItalic]	[file:CronosPro-SemiboldSubhIt]	[features=default]
	\definefontsynonym[SansSubhead-BoldItalic]		[file:CronosPro-BoldSubhIt]		[features=default]

	\definefontsynonym[SansDisplay-Light]			[file:CronosPro-LtDisp]			[features=default]
	\definefontsynonym[SansDisplay-Regular]			[file:CronosPro-Disp]			[features=default]
	\definefontsynonym[SansDisplay-SemiBold]		[file:CronosPro-SemiboldDisp]	[features=default]
	\definefontsynonym[SansDisplay-Bold]			[file:CronosPro-BoldDisp]		[features=default]
	\definefontsynonym[SansDisplay-LightItalic]		[file:CronosPro-LtDispIt]		[features=default]
	\definefontsynonym[SansDisplay-Italic]			[file:CronosPro-DispIt]			[features=default]
	\definefontsynonym[SansDisplay-SemiBoldItalic]	[file:CronosPro-SemiboldDispIt]	[features=default]
	\definefontsynonym[SansDisplay-BoldItalic]		[file:CronosPro-BoldDispIt]		[features=default]
\stoptypescript

%-------------------- GaramondPro --------------------%
\starttypescript [serif] [garamond] [name]

	\definefontsynonym[SerifCaption-Regular]		[file:GaramondPremrPro-Capt]		[features=default]
	\definefontsynonym[SerifCaption-Medium]			[file:GaramondPremrPro-MedCapt]		[features=default]
	\definefontsynonym[SerifCaption-SemiBold]		[file:GaramondPremrPro-SmBdCapt]	[features=default]
	\definefontsynonym[SerifCaption-Bold]			[file:GaramondPremrPro-BdCapt]		[features=default]
	\definefontsynonym[SerifCaption-Italic]			[file:GaramondPremrPro-ItCapt]		[features=default]
	\definefontsynonym[SerifCaption-MediumItalic]	[file:GaramondPremrPro-MedItCapt]	[features=default]
	\definefontsynonym[SerifCaption-SemiBoldItalic]	[file:GaramondPremrPro-SmBdItCapt]	[features=default]
	\definefontsynonym[SerifCaption-BoldItalic]		[file:GaramondPremrPro-BdItCapt] 	[features=default]
	                                                
	\definefontsynonym[SerifRegular-Regular]		[file:GaramondPremrPro]				[features=default]
	\definefontsynonym[SerifRegular-Medium]			[file:GaramondPremrPro-Med]			[features=default]
	\definefontsynonym[SerifRegular-SemiBold]		[file:GaramondPremrPro-SmBd]		[features=default]
	\definefontsynonym[SerifRegular-Bold]			[file:GaramondPremrPro-Bd]			[features=default]
	\definefontsynonym[SerifRegular-Italic]			[file:GaramondPremrPro-It]			[features=default]
	\definefontsynonym[SerifRegular-MediumItalic]	[file:GaramondPremrPro-MedIt]		[features=default]
	\definefontsynonym[SerifRegular-SemiBoldItalic]	[file:GaramondPremrPro-SmBdIt]		[features=default]
	\definefontsynonym[SerifRegular-BoldItalic]		[file:GaramondPremrPro-BdIt]		[features=default]
	                                                
	\definefontsynonym[SerifSubhead-Regular]		[file:GaramondPremrPro-Subh]		[features=default]
	\definefontsynonym[SerifSubhead-Medium]			[file:GaramondPremrPro-MedSubh]		[features=default]
	\definefontsynonym[SerifSubhead-SemiBold]		[file:GaramondPremrPro-SmBdSubh]	[features=default]
	\definefontsynonym[SerifSubhead-Bold]			[file:GaramondPremrPro-BdSubh]		[features=default]
	\definefontsynonym[SerifSubhead-Italic]			[file:GaramondPremrPro-ItSubh]		[features=default]
	\definefontsynonym[SerifSubhead-MediumItalic]	[file:GaramondPremrPro-MedItSubh]	[features=default]
	\definefontsynonym[SerifSubhead-SemiBoldItalic]	[file:GaramondPremrPro-SmBdItSubh]	[features=default]
	\definefontsynonym[SerifSubhead-BoldItalic]		[file:GaramondPremrPro-BdItSubh]	[features=default]
                                                    
	\definefontsynonym[SerifDisplay-Light]			[file:GaramondPremrPro-LtDisp]		[features=default]
	\definefontsynonym[SerifDisplay-Regular]		[file:GaramondPremrPro-Disp]		[features=default]
	\definefontsynonym[SerifDisplay-Medium]			[file:GaramondPremrPro-MedDisp]		[features=default]
	\definefontsynonym[SerifDisplay-SemiBold]		[file:GaramondPremrPro-SmBdDisp]	[features=default]
	\definefontsynonym[SerifDisplay-Bold]			[file:GaramondPremrPro-BdDisp]		[features=default]
	\definefontsynonym[SerifDisplay-LightItalic]	[file:GaramondPremrPro-LtItDisp]	[features=default]
	\definefontsynonym[SerifDisplay-Italic]			[file:GaramondPremrPro-ItDisp]		[features=default]
	\definefontsynonym[SerifDisplay-MediumItalic]	[file:GaramondPremrPro-MedItDisp]	[features=default]
	\definefontsynonym[SerifDisplay-SemiBoldItalic]	[file:GaramondPremrPro-SmBdItDisp]	[features=default]
	\definefontsynonym[SerifDisplay-BoldItalic]		[file:GaramondPremrPro-BdItDisp]	[features=default]
\stoptypescript


%-------------------- Optical Bodyfonts --------------------%

\starttypescript [serif] [optical:regular] [size]
	\definebodyfont [4pt,5pt,6pt,7pt,8pt,9pt] [rm]
		[tf=SerifCaption-Regular						sa 1,
		 bf=SerifCaption-Bold							sa 1,
		 sl=SerifCaption-Slanted						sa 1,
		 it=SerifCaption-Italic							sa 1,
		 bs=SerifCaption-BoldSlanted					sa 1,
		 bi=SerifCaption-BoldItalic						sa 1,
		 sc=SerifCaption-Regular*smallcaps				sa 1]

	\definebodyfont [10pt,11pt,12pt,13pt] [rm]
		[tf=SerifRegular-Regular						sa 1,
		 bf=SerifRegular-Bold							sa 1,
		 sl=SerifRegular-Slanted						sa 1,
		 it=SerifRegular-Italic							sa 1,
		 bs=SerifRegular-BoldSlanted					sa 1,
		 bi=SerifRegular-BoldItalic						sa 1,
		 sc=SerifRegular-Regular*smallcaps				sa 1]

	\definebodyfont [14pt,14.4pt,15pt,16pt,17pt,17.3pt,18pt,20pt] [rm]
		[tf=SerifSubhead-Regular						sa 1,
		 bf=SerifSubhead-Bold							sa 1,
		 sl=SerifSubhead-Slanted						sa 1,
		 it=SerifSubhead-Italic							sa 1,
		 bs=SerifSubhead-BoldSlanted					sa 1,
		 bi=SerifSubhead-BoldItalic						sa 1,
		 sc=SerifSubhead-Regular*smallcaps				sa 1]

	\definebodyfont [20.7pt,22pt,24pt,26pt,28pt,30pt,32pt,34pt,36pt,38pt,40pt,42pt] [rm]
		[tf=SerifDisplay-Regular						sa 1,
		 bf=SerifDisplay-Bold							sa 1,
		 sl=SerifDisplay-Slanted						sa 1,
		 it=SerifDisplay-Italic							sa 1,
		 bs=SerifDisplay-BoldSlanted					sa 1,
		 bi=SerifDisplay-BoldItalic						sa 1,
		 sc=SerifDisplay-Regular*smallcaps				sa 1]
\stoptypescript

\starttypescript [sans] [optical:regular] [size]
	\definebodyfont [4pt,5pt,6pt,7pt,8pt,9pt] [ss]
		[tf=SansCaption-Regular							sa 1,
		 bf=SansCaption-SemiBold							sa 1,
		 sl=SansCaption-Slanted							sa 1,
		 it=SansCaption-Italic							sa 1,
		 bs=SansCaption-SemiBoldSlanted						sa 1,
		 bi=SansCaption-SemiBoldItalic						sa 1,
		 sc=SansCaption-Regular*smallcaps				sa 1]

	\definebodyfont [10pt,11pt,12pt,13pt] [ss]
		[tf=SansRegular-Regular							sa 1,
		 bf=SansRegular-SemiBold							sa 1,
		 sl=SansRegular-Slanted							sa 1,
		 it=SansRegular-Italic							sa 1,
		 bs=SansRegular-SemiBoldSlanted						sa 1,
		 bi=SansRegular-SemiBoldItalic						sa 1,
		 sc=SansRegular-Regular*smallcaps				sa 1]

	\definebodyfont [14pt,14.4pt,15pt,16pt,17pt,17.3pt,18pt,20pt] [ss]
		[tf=SansSubhead-Regular							sa 1,
		 bf=SansSubhead-SemiBold							sa 1,
		 sl=SansSubhead-Slanted							sa 1,
		 it=SansSubhead-Italic							sa 1,
		 bs=SansSubhead-SemiBoldSlanted						sa 1,
		 bi=SansSubhead-SemiBoldItalic						sa 1,
		 sc=SansSubhead-Regular*smallcaps				sa 1]

	\definebodyfont [20.7pt,22pt,24pt,26pt,28pt,30pt,32pt,34pt,36pt,38pt,40pt,42pt] [ss]
		[tf=SansDisplay-Regular							sa 1,
		 bf=SansDisplay-SemiBold							sa 1,
		 sl=SansDisplay-Slanted							sa 1,
		 it=SansDisplay-Italic							sa 1,
		 bs=SansDisplay-SemiBoldSlanted						sa 1,
		 bi=SansDisplay-SemiBoldItalic						sa 1,
		 sc=SansDisplay-Regular*smallcaps				sa 1]
\stoptypescript

\starttypescript [GaramondProCronosPro, CronosProGaramondPro, GaramondCronos, CronosGaramond]
	\definetypeface [\typescriptone] [rm] [serif] [garamond]		[optical:regular]		[rscale=1.08]
	\definetypeface [\typescriptone] [ss] [sans]  [cronos]			[optical:regular]
\stoptypescript

[-- Attachment #4: test.log --]
[-- Type: application/octet-stream, Size: 4978 bytes --]

("/Users/Bernhard/Documents/ConTeXt Experimente/BugReports/typescript_setup_test/test.tex"
publications    : loading formatting style from bxml-apa
(/Applications/ConTeXt/tex/texmf-context/tex/context/base/bxml-apa.mkiv)

ConTeXt  ver: 2010.05.24 13:05 MKIV  fmt: 2010.5.30  int: english/english

system          : cont-new loaded
(/Applications/ConTeXt/tex/texmf-context/tex/context/base/cont-new.tex
systems         : beware: some patches loaded from cont-new.tex
(/Applications/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv))
system          : cont-fil loaded
(/Applications/ConTeXt/tex/texmf-context/tex/context/base/cont-fil.tex
loading         : ConTeXt File Synonyms
)
system          : cont-sys.rme loaded
(/Applications/ConTeXt/tex/texmf-context/tex/context/user/cont-sys.rme (/Applications/ConTeXt/tex/texmf-context/tex/context/base/type-def.mkiv) (/Applications/ConTeXt/tex/texmf-context/tex/context/base/type-lua.mkiv) (/Applications/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv) (/Applications/ConTeXt/tex/texmf-context/tex/context/base/type-otf.mkiv))
system          : test.top loaded
%
%	begin of optionfile
%
%	% runtime options files (command line driven)
%	\unprotect
%	% special commands, mostly for the ctx development team
%	% feedback and basic job control
%	% handy for special styles
%	\startluacode
%	document = document or { }
%	document.arguments={
%	}
%	document.files={
%	 "test.tex",
%	}
%	\stopluacode
%	% process info
%	\setupsystem[inputfile=test.tex]
%	\setupsystem[\c!n=1,\c!m=1]
%	% modes
%	% options (not that important)
%	\startsetups *runtime:options
%	\setupoutput[pdftex]
%	\stopsetups
%	% styles and modules
%	\startsetups *runtime:modules
%	\stopsetups
%	% done
%	\protect \endinput
%
%	end of optionfile
%
(test.top)
fonts           : preloading latin modern fonts
{/Applications/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/Applications/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{/Applications/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
bodyfont        : 12pt rm is loaded
language        : language en is active
("/Users/Bernhard/Documents/ConTeXt Experimente/BugReports/typescript_setup_test/type-garamondcronos.tex")
systems         : begin file test.tex at line 8
!define font    : font with name SansSubhead-SemiBold is not found
!define font    : unknown font SansSubhead-SemiBold, loading aborted
!define font    : unable to define SansSubhead-SemiBold as \*GaramondProCronosPro16ptssbf*
!pages          : flushing realpage 1, userpage 1, subpage 1
systems         : end file test.tex at line 10
system          : cont-err loaded
(/Applications/ConTeXt/tex/texmf-context/tex/context/base/cont-err.tex
systems         : no file 'cont-sys.tex', using 'cont-sys.rme' instead
) )</Users/Bernhard/Library/Fonts/CronosPro-Subh.otf>
mkiv lua stats : used config path          - /Applications/ConTeXt/tex/texmf/web2c/texmf.cnf
mkiv lua stats : used cache path           - /Applications/ConTeXt/tex/texmf-cache
mkiv lua stats : input load time           - 0.026 seconds
mkiv lua stats : stored bytecode data      - 213 modules, 53 tables, 266 chunks
mkiv lua stats : node list callback tasks  - 6 unique task lists, 5 instances (re)created, 323 calls
mkiv lua stats : cleaned up reserved nodes - 32 nodes, 9 lists of 410
mkiv lua stats : node memory usage         - 20 glue_spec
mkiv lua stats : used backend              - pdf (backend for directly generating pdf output)
mkiv lua stats : loaded patterns           - en:us:pat:exc:2
mkiv lua stats : startup time              - 0.461 seconds including runtime option file processing
mkiv lua stats : callbacks                 - direct: 528, indirect: 4613, total: 5141
mkiv lua stats : lxml preparation time     - 0.000 seconds, 0 nodes, 15 lpath calls, 0 cached calls
mkiv lua stats : result saved in file      - test.pdf
mkiv lua stats : loaded fonts              - 44 files: lmmono10-regular.otf lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman10-bold.otf lmroman10-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman8-bold.otf lmroman8-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans10-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmex10.tfm lmmi10.tfm lmmi12.tfm lmmi7.tfm lmmi8.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy8.tfm lmsy9.tfm rm-lmr10.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr8.tfm rm-lmr9.tfm cronospro-subh.otf
mkiv lua stats : fonts load time           - 0.439 seconds 
mkiv lua stats : luatex banner             - this is luatex, version beta-0.60.1-2010042810
mkiv lua stats : control sequences         - 35579 of 165536
mkiv lua stats : current memory usage      - 59 MB (ctx: 60 MB)
mkiv lua stats : runtime                   - 1.324 seconds, 1 processed pages, 1 shipped pages, 0.755 pages/second


[-- Attachment #5: Type: text/plain, Size: 2 bytes --]




[-- Attachment #6: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: setups in typescripts
  2010-05-30  8:18 setups in typescripts Bernhard Rosensteiner
  2010-05-30  8:51 ` Wolfgang Schuster
@ 2010-05-30 20:44 ` Willi Egger
  2010-05-31 10:42   ` Bernhard Rosensteiner
  1 sibling, 1 reply; 6+ messages in thread
From: Willi Egger @ 2010-05-30 20:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On 30 May 2010, at 10:18, Bernhard Rosensteiner wrote:

> Hello,
> 
> i have made a typescript which works. the only thing is that i have in my typescript something like:
> 
> \startsetups [fallbackfonts]
> …
> \stopsetups
> 
> \starttypescript [bla]
> \setups[fallbackfonts]
> …
> \stoptypescript
> 
> referring in my document to the typescriptfile with \usetypescriptfile[Mytypescript] does not load the setups and so the font fallback is not working (obviously \usetypescriptfile only loads the typescripts).
> When i do: 
> 
> \input Mytypescript

\usetypescriptfile[Mytypescript]
\usetypescript[bla]
\setupbodyfont[bla,12pt]

should work

Willi
> 
> in the document all works as expected. So my question is how can i load setups with \usetypescriptfile
> Maybe i have to make a extra „fontfallback-setups“ file, but i don´t know how it is recognized by context. Please help.
> 
> best regards
> Bernhard
> 
> 
> 
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: setups in typescripts
  2010-05-30 20:44 ` Willi Egger
@ 2010-05-31 10:42   ` Bernhard Rosensteiner
  0 siblings, 0 replies; 6+ messages in thread
From: Bernhard Rosensteiner @ 2010-05-31 10:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users

>> i have made a typescript which works. the only thing is that i have in my typescript something like:
>> 
>> \startsetups [fallbackfonts]
>> …
>> \stopsetups
>> 
>> \starttypescript [bla]
>> \setups[fallbackfonts]
>> …
>> \stoptypescript
>> 
>> referring in my document to the typescriptfile with \usetypescriptfile[Mytypescript] does not load the setups and so the font fallback is not working (obviously \usetypescriptfile only loads the typescripts).
>> When i do: 
>> 
>> \input Mytypescript
> 
> \usetypescriptfile[Mytypescript]
> \usetypescript[bla]
> \setupbodyfont[bla,12pt]
> 
> should work
> 
> Willi


yes this works normal, but the \startsetups[fontfallback] … \stopsetups are not loaded with \usetypescriptfile - only the \starttypescript … \stoptypescript sections. Please see my second post. There are the file attachments which should demonstrate the behaviour.

best regards
Bernhard



___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2010-05-31 10:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-30  8:18 setups in typescripts Bernhard Rosensteiner
2010-05-30  8:51 ` Wolfgang Schuster
2010-05-30  9:28   ` Bernhard Rosensteiner
2010-05-30 12:02   ` Bernhard Rosensteiner
2010-05-30 20:44 ` Willi Egger
2010-05-31 10:42   ` Bernhard Rosensteiner

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